aboutsummaryrefslogtreecommitdiffstats
path: root/OpenKeychain/src/main/res/layout
diff options
context:
space:
mode:
authorVincent Breitmoser <valodim@mugenguild.com>2015-04-24 19:00:33 +0200
committerVincent Breitmoser <valodim@mugenguild.com>2015-04-24 19:17:05 +0200
commit96853a15ee535860fd789bc5be4979f2205e959c (patch)
tree4577db84fe7daf83ebf1f4d896cc43d6ddb4f47a /OpenKeychain/src/main/res/layout
parent702c28854bf0afe3d7b97e47716530dc751c9322 (diff)
downloadopen-keychain-96853a15ee535860fd789bc5be4979f2205e959c.tar.gz
open-keychain-96853a15ee535860fd789bc5be4979f2205e959c.tar.bz2
open-keychain-96853a15ee535860fd789bc5be4979f2205e959c.zip
revamp decrypt ui
Diffstat (limited to 'OpenKeychain/src/main/res/layout')
-rw-r--r--OpenKeychain/src/main/res/layout/decrypt_result_include.xml44
-rw-r--r--OpenKeychain/src/main/res/layout/decrypt_text_fragment.xml49
2 files changed, 19 insertions, 74 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
diff --git a/OpenKeychain/src/main/res/layout/decrypt_text_fragment.xml b/OpenKeychain/src/main/res/layout/decrypt_text_fragment.xml
index fb01a5ef0..635e61621 100644
--- a/OpenKeychain/src/main/res/layout/decrypt_text_fragment.xml
+++ b/OpenKeychain/src/main/res/layout/decrypt_text_fragment.xml
@@ -34,55 +34,6 @@
</ScrollView>
- <View
- android:layout_width="match_parent"
- android:layout_height="1dip"
- android:layout_marginLeft="16dp"
- android:layout_marginRight="16dp"
- android:background="?android:attr/listDivider" />
-
- <LinearLayout
- android:id="@+id/action_decrypt_share_plaintext"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginLeft="16dp"
- android:layout_marginRight="16dp"
- android:clickable="true"
- android:background="?android:selectableItemBackground"
- android:orientation="horizontal">
-
- <TextView
- android:paddingLeft="8dp"
- android:paddingRight="8dp"
- android:textAppearance="?android:attr/textAppearanceMedium"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:minHeight="?android:attr/listPreferredItemHeight"
- android:text="@string/btn_add_share_decrypted_text"
- android:drawableRight="@drawable/ic_share_grey_24dp"
- android:drawablePadding="8dp"
- android:gravity="center_vertical"
- android:layout_weight="1" />
-
- <View
- android:layout_width="1dip"
- android:layout_height="match_parent"
- android:gravity="right"
- android:layout_marginBottom="8dp"
- android:layout_marginTop="8dp"
- android:background="?android:attr/listDivider" />
-
- <ImageButton
- android:id="@+id/action_decrypt_copy_plaintext"
- android:layout_width="wrap_content"
- android:layout_height="match_parent"
- android:padding="8dp"
- android:src="@drawable/ic_content_copy_grey_24dp"
- android:layout_gravity="center_vertical"
- android:background="?android:selectableItemBackground" />
-
- </LinearLayout>
-
</LinearLayout>
<LinearLayout