diff options
author | Vincent Breitmoser <valodim@mugenguild.com> | 2015-04-24 19:00:33 +0200 |
---|---|---|
committer | Vincent Breitmoser <valodim@mugenguild.com> | 2015-04-24 19:17:05 +0200 |
commit | 96853a15ee535860fd789bc5be4979f2205e959c (patch) | |
tree | 4577db84fe7daf83ebf1f4d896cc43d6ddb4f47a /OpenKeychain/src/main/res/layout/decrypt_result_include.xml | |
parent | 702c28854bf0afe3d7b97e47716530dc751c9322 (diff) | |
download | open-keychain-96853a15ee535860fd789bc5be4979f2205e959c.tar.gz open-keychain-96853a15ee535860fd789bc5be4979f2205e959c.tar.bz2 open-keychain-96853a15ee535860fd789bc5be4979f2205e959c.zip |
revamp decrypt ui
Diffstat (limited to 'OpenKeychain/src/main/res/layout/decrypt_result_include.xml')
-rw-r--r-- | OpenKeychain/src/main/res/layout/decrypt_result_include.xml | 44 |
1 files changed, 19 insertions, 25 deletions
diff --git a/OpenKeychain/src/main/res/layout/decrypt_result_include.xml b/OpenKeychain/src/main/res/layout/decrypt_result_include.xml index debc1106f..f64d72987 100644 --- a/OpenKeychain/src/main/res/layout/decrypt_result_include.xml +++ b/OpenKeychain/src/main/res/layout/decrypt_result_include.xml @@ -1,10 +1,12 @@ <?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:id="@+id/result_main_layout" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="wrap_content" - android:background="@color/holo_gray_bright"> + android:background="@color/holo_gray_bright" + tools:showIn="@layout/decrypt_text_fragment"> <LinearLayout android:orientation="vertical" @@ -13,7 +15,8 @@ android:paddingLeft="16dp" android:paddingRight="16dp" android:paddingTop="4dp" - android:paddingBottom="4dp"> + android:paddingBottom="4dp" + android:animateLayoutChanges="true"> <LinearLayout android:orientation="horizontal" @@ -32,10 +35,11 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:textAppearance="?android:attr/textAppearanceMedium" - android:text="Not Encrypted (set in-code)" android:layout_marginLeft="8dp" android:layout_marginTop="8dp" - android:layout_marginBottom="8dp" /> + android:layout_marginBottom="8dp" + tools:text="Encryption status text" + /> </LinearLayout> <LinearLayout @@ -55,25 +59,19 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:textAppearance="?android:attr/textAppearanceMedium" - android:text="Signed by (set in-code)" android:layout_marginLeft="8dp" android:layout_marginTop="8dp" - android:layout_marginBottom="8dp" /> + android:layout_marginBottom="8dp" + tools:text="Signature status text" + /> </LinearLayout> - <View - android:id="@+id/result_signature_divider1" - android:layout_width="match_parent" - android:layout_height="1dip" - android:layout_marginLeft="32dp" - android:background="?android:attr/listDivider" /> - <LinearLayout android:id="@+id/result_signature_layout" android:layout_width="match_parent" android:layout_height="?android:attr/listPreferredItemHeight" android:clickable="true" - android:layout_marginLeft="32dp" + android:paddingLeft="4dp" android:paddingRight="4dp" android:background="?android:selectableItemBackground" android:orientation="horizontal"> @@ -83,6 +81,7 @@ android:layout_height="match_parent" android:layout_weight="1" android:paddingRight="4dp" + android:paddingLeft="4dp" android:gravity="center_vertical" android:orientation="vertical"> @@ -91,15 +90,16 @@ android:textAppearance="?android:attr/textAppearanceMedium" android:layout_width="match_parent" android:layout_height="wrap_content" - android:text="Alice (set in-code)" /> + tools:text="Alice" /> <TextView android:id="@+id/result_signature_email" android:textAppearance="?android:attr/textAppearanceSmall" android:layout_width="match_parent" android:layout_height="wrap_content" - android:text="alice@example.com (set in-code)" - android:gravity="center_vertical" /> + android:gravity="center_vertical" + tools:text="alice@example.com" + /> </LinearLayout> @@ -114,6 +114,7 @@ <TextView android:id="@+id/result_signature_action" android:paddingLeft="8dp" + android:paddingRight="8dp" android:textAppearance="?android:attr/textAppearanceMedium" android:layout_width="wrap_content" android:layout_height="match_parent" @@ -121,17 +122,10 @@ android:drawableRight="@drawable/ic_vpn_key_grey_24dp" android:drawablePadding="8dp" android:gravity="center_vertical" - android:background="?android:selectableItemBackground" /> + /> </LinearLayout> - <View - android:id="@+id/result_signature_divider2" - android:layout_width="match_parent" - android:layout_height="1dip" - android:layout_marginLeft="32dp" - android:background="?android:attr/listDivider" /> - </LinearLayout> <View |