aboutsummaryrefslogtreecommitdiffstats
path: root/OpenKeychain/src/main/res/layout
diff options
context:
space:
mode:
authorVincent Breitmoser <valodim@mugenguild.com>2015-11-01 22:29:13 +0100
committerVincent Breitmoser <valodim@mugenguild.com>2015-11-02 15:57:35 +0100
commit3411a5c087688f4e2033247b83ce10ea1e49d837 (patch)
treecc66c03f8486d6f92b0cf17e62c9f8c431a4f3a1 /OpenKeychain/src/main/res/layout
parent0641b9cba68aa0093f1b1b7aa937caa50e9f5669 (diff)
downloadopen-keychain-3411a5c087688f4e2033247b83ce10ea1e49d837.tar.gz
open-keychain-3411a5c087688f4e2033247b83ce10ea1e49d837.tar.bz2
open-keychain-3411a5c087688f4e2033247b83ce10ea1e49d837.zip
keylist: add "search for query" button to empty view
Diffstat (limited to 'OpenKeychain/src/main/res/layout')
-rw-r--r--OpenKeychain/src/main/res/layout/key_list_fragment.xml31
1 files changed, 29 insertions, 2 deletions
diff --git a/OpenKeychain/src/main/res/layout/key_list_fragment.xml b/OpenKeychain/src/main/res/layout/key_list_fragment.xml
index 26cedd362..6aaf5be25 100644
--- a/OpenKeychain/src/main/res/layout/key_list_fragment.xml
+++ b/OpenKeychain/src/main/res/layout/key_list_fragment.xml
@@ -3,6 +3,8 @@
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="match_parent"
android:layout_width="match_parent"
+ xmlns:tools="http://schemas.android.com/tools"
+ xmlns:custom="http://schemas.android.com/apk/res-auto"
>
<!--rebuild functionality of ListFragment -->
@@ -23,10 +25,11 @@
<LinearLayout
android:id="@+id/key_list_empty"
android:layout_width="match_parent"
- android:layout_height="match_parent"
+ android:layout_height="240dp"
android:gravity="center"
android:orientation="vertical"
- android:visibility="visible">
+ android:animateLayoutChanges="true"
+ >
<TextView
android:layout_width="wrap_content"
@@ -35,6 +38,30 @@
android:text="@string/key_list_empty_text1"
android:textAppearance="?android:attr/textAppearanceLarge" />
+ <org.sufficientlysecure.keychain.ui.widget.ToolableViewAnimator
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:id="@+id/search_container"
+ android:inAnimation="@anim/fade_in_delayed"
+ android:outAnimation="@anim/fade_out"
+ android:measureAllChildren="true"
+ custom:initialView="1">
+
+ <Space
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content" />
+
+ <Button
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="24dp"
+ android:id="@+id/search_button"
+ android:gravity="center"
+ tools:text="@string/btn_search_for_query"
+ />
+
+ </org.sufficientlysecure.keychain.ui.widget.ToolableViewAnimator>
+
</LinearLayout>
</FrameLayout>