aboutsummaryrefslogtreecommitdiffstats
path: root/OpenKeychain/src/main/res/layout/view_key_adv_user_ids_fragment.xml
diff options
context:
space:
mode:
authorDominik Schürmann <dominik@dominikschuermann.de>2015-12-28 15:41:36 +0100
committerDominik Schürmann <dominik@dominikschuermann.de>2015-12-28 15:41:36 +0100
commitea3b25846946e96e124cd5635e710f8ece77eceb (patch)
tree931e76217b46e61c8b4b22fdf924b9940f27d6e4 /OpenKeychain/src/main/res/layout/view_key_adv_user_ids_fragment.xml
parent9887e8b42ad2e6fddb1f3be4c0c315724c4d5c0b (diff)
downloadopen-keychain-ea3b25846946e96e124cd5635e710f8ece77eceb.tar.gz
open-keychain-ea3b25846946e96e124cd5635e710f8ece77eceb.tar.bz2
open-keychain-ea3b25846946e96e124cd5635e710f8ece77eceb.zip
use correct white add icon
Diffstat (limited to 'OpenKeychain/src/main/res/layout/view_key_adv_user_ids_fragment.xml')
-rw-r--r--OpenKeychain/src/main/res/layout/view_key_adv_user_ids_fragment.xml86
1 files changed, 86 insertions, 0 deletions
diff --git a/OpenKeychain/src/main/res/layout/view_key_adv_user_ids_fragment.xml b/OpenKeychain/src/main/res/layout/view_key_adv_user_ids_fragment.xml
new file mode 100644
index 000000000..b6399b057
--- /dev/null
+++ b/OpenKeychain/src/main/res/layout/view_key_adv_user_ids_fragment.xml
@@ -0,0 +1,86 @@
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ xmlns:tools="http://schemas.android.com/tools">
+
+ <ScrollView
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+
+ <!-- focusable and related properties to workaround http://stackoverflow.com/q/16182331-->
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:focusable="true"
+ android:focusableInTouchMode="true"
+ android:descendantFocusability="beforeDescendants"
+ android:orientation="vertical"
+ android:paddingLeft="16dp"
+ android:paddingRight="16dp">
+
+ <TextView
+ style="@style/SectionHeader"
+ android:layout_width="wrap_content"
+ android:layout_height="0dp"
+ android:layout_marginTop="8dp"
+ android:text="@string/section_user_ids"
+ android:layout_weight="1" />
+
+ <org.sufficientlysecure.keychain.ui.widget.FixedListView
+ android:id="@+id/view_key_user_ids"
+ android:layout_width="match_parent"
+ android:layout_height="0dp"
+ android:layout_marginBottom="4dp"
+ android:layout_weight="1" />
+
+ <LinearLayout
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:orientation="vertical"
+ android:id="@+id/view_key_user_ids_add_layout"
+ android:visibility="gone"
+ tools:visibility="visible">
+
+ <View
+ android:layout_width="match_parent"
+ android:layout_height="1dip"
+ android:background="?android:attr/listDivider" />
+
+ <org.sufficientlysecure.keychain.ui.widget.FixedListView
+ android:id="@+id/view_key_user_ids_added"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content" />
+
+ </LinearLayout>
+
+ </LinearLayout>
+
+ </ScrollView>
+
+ <ViewAnimator
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentRight="true"
+ android:layout_alignParentEnd="true"
+ android:layout_alignParentBottom="true"
+ android:id="@+id/view_key_subkey_fab_layout"
+ android:inAnimation="@anim/fab_slide_in"
+ android:outAnimation="@anim/fab_slide_down">
+
+ <Space
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content" />
+
+ <android.support.design.widget.FloatingActionButton
+ android:id="@+id/view_key_subkey_fab"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_margin="24dp"
+ android:src="@drawable/ic_add_white_24dp"
+ android:visibility="invisible"
+ android:layout_gravity="bottom"
+ tools:visibility="visible" />
+
+ </ViewAnimator>
+
+</RelativeLayout>