aboutsummaryrefslogtreecommitdiffstats
path: root/OpenKeychain/src/main/res/layout
diff options
context:
space:
mode:
authorDominik Schürmann <dominik@dominikschuermann.de>2015-07-03 16:54:17 +0200
committerDominik Schürmann <dominik@dominikschuermann.de>2015-07-03 16:54:17 +0200
commit0faf69e91fa5ccf3ba14267c5e2e6414e7be0324 (patch)
tree7a84023fadf24f354dcb5b1bc41ed4b18bf22ef0 /OpenKeychain/src/main/res/layout
parentd03595f64e264aed21a53c5d238125ce09a90f02 (diff)
downloadopen-keychain-0faf69e91fa5ccf3ba14267c5e2e6414e7be0324.tar.gz
open-keychain-0faf69e91fa5ccf3ba14267c5e2e6414e7be0324.tar.bz2
open-keychain-0faf69e91fa5ccf3ba14267c5e2e6414e7be0324.zip
Subtle design improvements to yubikey dialog
Diffstat (limited to 'OpenKeychain/src/main/res/layout')
-rw-r--r--OpenKeychain/src/main/res/layout/nfc_activity.xml81
1 files changed, 57 insertions, 24 deletions
diff --git a/OpenKeychain/src/main/res/layout/nfc_activity.xml b/OpenKeychain/src/main/res/layout/nfc_activity.xml
index 724b4606c..90ee4f9ca 100644
--- a/OpenKeychain/src/main/res/layout/nfc_activity.xml
+++ b/OpenKeychain/src/main/res/layout/nfc_activity.xml
@@ -19,38 +19,36 @@
android:paddingTop="16dp"
custom:initialView="0">
- <LinearLayout
+ <RelativeLayout
android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_below="@id/toolbar_include"
- android:layout_gravity="center"
- android:orientation="vertical">
+ android:layout_height="wrap_content">
<TextView
+ android:id="@+id/nfc_activity_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/nfc_text"
android:textAppearance="@android:style/TextAppearance.Medium" />
<ImageView
+ android:id="@+id/nfc_image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
+ android:layout_alignParentLeft="true"
+ android:layout_alignParentStart="true"
+ android:layout_below="@+id/nfc_activity_text"
android:layout_marginTop="8dp"
android:adjustViewBounds="true"
- android:src="@drawable/yubikey_phone"
- android:id="@+id/nfc_image"
- android:background="@android:color/transparent" />
- </LinearLayout>
+ android:background="@android:color/transparent"
+ android:src="@drawable/yubikey_phone" />
+ </RelativeLayout>
- <LinearLayout
+ <RelativeLayout
android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_below="@id/toolbar_include"
- android:layout_gravity="center"
- android:gravity="center"
- android:orientation="vertical">
+ android:layout_height="wrap_content">
<TextView
+ android:id="@+id/nfc_activity_text2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/nfc_wait"
@@ -60,27 +58,62 @@
style="?android:attr/progressBarStyleLarge"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
+ android:layout_centerHorizontal="true"
+ android:layout_centerVertical="true"
android:padding="8dp" />
- </LinearLayout>
+ <!-- placeholder to retain dialog size -->
+ <ImageView
+ android:id="@+id/nfc_image_placeholder1"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentLeft="true"
+ android:layout_alignParentStart="true"
+ android:layout_below="@+id/nfc_activity_text2"
+ android:layout_marginTop="8dp"
+ android:adjustViewBounds="true"
+ android:background="@android:color/transparent"
+ android:src="@drawable/yubikey_phone"
+ android:visibility="invisible" />
+
+ </RelativeLayout>
- <LinearLayout
+ <RelativeLayout
android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_below="@id/toolbar_include"
- android:layout_gravity="center"
- android:gravity="center"
- android:orientation="vertical">
+ android:layout_height="wrap_content">
<TextView
+ android:id="@+id/nfc_activity_text3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/nfc_finished"
android:textAppearance="@android:style/TextAppearance.Medium" />
- </LinearLayout>
+ <!-- placeholder to retain dialog size -->
+ <ImageView
+ android:id="@+id/nfc_image_placeholder2"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentLeft="true"
+ android:layout_alignParentStart="true"
+ android:layout_below="@+id/nfc_activity_text3"
+ android:layout_marginTop="8dp"
+ android:adjustViewBounds="true"
+ android:background="@android:color/transparent"
+ android:src="@drawable/yubikey_phone"
+ android:visibility="invisible" />
- </org.sufficientlysecure.keychain.ui.widget.ToolableViewAnimator>
+ <ImageView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_centerHorizontal="true"
+ android:layout_centerVertical="true"
+ android:adjustViewBounds="true"
+ android:background="@android:color/transparent"
+ android:src="@drawable/ic_check_circle_black_48dp" />
+ </RelativeLayout>
+
+ </org.sufficientlysecure.keychain.ui.widget.ToolableViewAnimator>
</LinearLayout> \ No newline at end of file