instructions on empty public key list for first start

This commit is contained in:
Dominik Schürmann
2014-01-07 23:48:16 +01:00
parent f76d33d230
commit 2ccfc09f44
3 changed files with 87 additions and 8 deletions

View File

@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
@@ -16,13 +16,55 @@
android:paddingRight="32dp"
android:scrollbarStyle="outsideOverlay" />
<TextView
<LinearLayout
android:id="@+id/empty"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:text="@string/list_empty"
android:textSize="30sp"
android:visibility="gone" />
android:orientation="vertical"
android:visibility="gone" >
</LinearLayout>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:text="@string/key_list_empty_text1"
android:textAppearance="?android:attr/textAppearanceLarge" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:text=""
android:textAppearance="?android:attr/textAppearanceLarge" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:text="@string/key_list_empty_text2"
android:textAppearance="?android:attr/textAppearanceSmall" />
<Button
android:id="@+id/key_list_empty_button_create"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/key_list_empty_button_create"
android:textAppearance="?android:attr/textAppearanceSmall" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:text="@string/key_list_empty_text3"
android:textAppearance="?android:attr/textAppearanceSmall" />
<Button
android:id="@+id/key_list_empty_button_import"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/key_list_empty_button_import"
android:textAppearance="?android:attr/textAppearanceSmall" />
</LinearLayout>
</FrameLayout>

View File

@@ -104,7 +104,7 @@
<string name="menu_beam_preferences">Beam settings</string>
<string name="menu_key_edit_cancel">Cancel</string>
<string name="menu_encrypt_to">Encrypt to…</string>
<!-- label -->
<string name="label_sign">Sign</string>
<string name="label_message">Message</string>
@@ -354,11 +354,18 @@
<string name="share_qr_code_dialog_progress">QR Code %1$d of %2$d</string>
<string name="share_nfc_dialog">Share with NFC</string>
<!-- Key list -->
<plurals name="key_list_selected_keys">
<item quantity="one">1 key selected.</item>
<item quantity="other">%d keys selected.</item>
</plurals>
<string name="key_list_empty_text1">No keys available yet…</string>
<string name="key_list_empty_text2">You can start by</string>
<string name="key_list_empty_text3">or</string>
<string name="key_list_empty_button_create">creating your own key pair</string>
<string name="key_list_empty_button_import">importing public keys.</string>
<!-- Key view -->
<string name="key_view_action_encrypt">Encrypt to this contact</string>