aboutsummaryrefslogtreecommitdiffstats
path: root/OpenKeychain/src/main/res
diff options
context:
space:
mode:
Diffstat (limited to 'OpenKeychain/src/main/res')
-rw-r--r--OpenKeychain/src/main/res/layout/decrypt_result_include.xml44
-rw-r--r--OpenKeychain/src/main/res/layout/decrypt_text_fragment.xml49
-rw-r--r--OpenKeychain/src/main/res/menu/decrypt_menu.xml17
-rw-r--r--OpenKeychain/src/main/res/values/strings.xml15
4 files changed, 44 insertions, 81 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
diff --git a/OpenKeychain/src/main/res/menu/decrypt_menu.xml b/OpenKeychain/src/main/res/menu/decrypt_menu.xml
new file mode 100644
index 000000000..c0d7a519f
--- /dev/null
+++ b/OpenKeychain/src/main/res/menu/decrypt_menu.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="utf-8"?>
+<menu xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto">
+
+ <item
+ android:id="@+id/decrypt_copy"
+ android:title="@string/btn_copy_decrypted_text"
+ android:icon="@drawable/ic_action_encrypt_copy_24dp"
+ app:showAsAction="ifRoom" />
+
+ <item
+ android:id="@+id/decrypt_share"
+ android:title="@string/btn_share_decrypted_text"
+ android:icon="@drawable/ic_action_encrypt_share_24dp"
+ app:showAsAction="ifRoom" />
+
+</menu> \ No newline at end of file
diff --git a/OpenKeychain/src/main/res/values/strings.xml b/OpenKeychain/src/main/res/values/strings.xml
index df88336a1..4d92dac20 100644
--- a/OpenKeychain/src/main/res/values/strings.xml
+++ b/OpenKeychain/src/main/res/values/strings.xml
@@ -78,7 +78,8 @@
<string name="btn_view_cert_key">"View certification key"</string>
<string name="btn_create_key">"Create key"</string>
<string name="btn_add_files">"Add file(s)"</string>
- <string name="btn_add_share_decrypted_text">"Share decrypted text"</string>
+ <string name="btn_share_decrypted_text">"Share decrypted text"</string>
+ <string name="btn_copy_decrypted_text">"Copy decrypted text"</string>
<string name="btn_decrypt_clipboard">"Decrypt text from clipboard"</string>
<string name="btn_decrypt_and_verify">"and verify signatures"</string>
<string name="btn_decrypt_files">"Decrypt files"</string>
@@ -285,16 +286,16 @@
<!-- results shown after decryption/verification -->
<string name="decrypt_result_no_signature">"Not Signed"</string>
<string name="decrypt_result_invalid_signature">"Invalid signature!"</string>
- <string name="decrypt_result_signature_uncertified">"Signed by (not certified!)"</string>
- <string name="decrypt_result_signature_certified">"Signed by"</string>
- <string name="decrypt_result_signature_expired_key">"Key is expired!"</string>
- <string name="decrypt_result_signature_revoked_key">"Key has been revoked!"</string>
- <string name="decrypt_result_signature_missing_key">"Unknown public key"</string>
+ <string name="decrypt_result_signature_uncertified">"Signed by <b>unconfirmed</b> key"</string>
+ <string name="decrypt_result_signature_certified">"Signed by confirmed key"</string>
+ <string name="decrypt_result_signature_expired_key">"Signed by <b>expired</b> key!"</string>
+ <string name="decrypt_result_signature_revoked_key">"Signed by <b>revoked</b> key!"</string>
+ <string name="decrypt_result_signature_missing_key">"Signed by <b>unknown public key</b>"</string>
<string name="decrypt_result_encrypted">"Encrypted"</string>
<string name="decrypt_result_not_encrypted">"Not Encrypted"</string>
<string name="decrypt_result_action_show">"Show"</string>
<string name="decrypt_result_action_Lookup">"Lookup"</string>
- <string name="decrypt_invalid_text">"Either the signature is invalid or the key has been revoked/is expired. You cannot be sure who wrote the text. Do you still want to display it?"</string>
+ <string name="decrypt_invalid_text">"Either the signature is invalid or the key has been revoked. You cannot be sure who wrote the text. Do you still want to display it?"</string>
<string name="decrypt_invalid_button">"I understand the risks, display it!"</string>
<!-- Add keys -->