136 lines
4.7 KiB
XML
136 lines
4.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
tools:layout_marginTop="24dp"
|
|
>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:padding="16dp"
|
|
android:elevation="4dp"
|
|
android:background="?attr/colorPrimary"
|
|
android:gravity="center_horizontal"
|
|
tools:targetApi="lollipop">
|
|
|
|
<ImageView
|
|
android:layout_width="48dp"
|
|
android:layout_height="48dp"
|
|
android:src="@mipmap/ic_launcher"
|
|
/>
|
|
|
|
<ImageView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_marginLeft="24dp"
|
|
android:layout_marginRight="24dp"
|
|
android:src="@drawable/link_24dp"
|
|
/>
|
|
|
|
<ImageView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:id="@+id/icon_client_app"
|
|
tools:src="@drawable/apps_k9"
|
|
/>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical">
|
|
|
|
<ScrollView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:overScrollMode="ifContentScrolls"
|
|
tools:ignore="UselessParent">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:paddingLeft="24dp"
|
|
android:paddingRight="24dp"
|
|
android:paddingTop="24dp"
|
|
android:paddingBottom="16dp"
|
|
>
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textAppearance="?android:textAppearanceLarge"
|
|
android:text="@string/request_permission_title"
|
|
android:id="@+id/dialog_title"
|
|
/>
|
|
|
|
<TextView
|
|
android:id="@+id/select_identity_key_title"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="20dp"
|
|
android:gravity="center_vertical"
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
tools:text="@string/request_permission_msg"
|
|
/>
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="20dp"
|
|
android:text="@string/requested_key_label"
|
|
android:textAppearance="?android:attr/textAppearanceSmall" />
|
|
|
|
<include layout="@layout/key_list_item" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="20dp"
|
|
android:text="@string/requested_key_unavailable_warning"
|
|
android:textAppearance="?android:textAppearanceMedium"
|
|
android:textColor="@color/android_red_dark"
|
|
android:id="@+id/requested_key_unavailable_warning"
|
|
android:visibility="gone"
|
|
tools:visibility="visible"
|
|
/>
|
|
|
|
</LinearLayout>
|
|
|
|
</ScrollView>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:gravity="end"
|
|
android:padding="8dp"
|
|
style="?buttonBarStyle">
|
|
|
|
<Button
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/button_cancel"
|
|
android:id="@+id/button_cancel"
|
|
style="?buttonBarButtonStyle"
|
|
/>
|
|
|
|
<Button
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/button_allow"
|
|
android:id="@+id/button_allow"
|
|
tools:enabled="false"
|
|
style="?buttonBarButtonStyle" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout> |