aboutsummaryrefslogtreecommitdiffstats
path: root/OpenKeychain/src/main/res/layout
diff options
context:
space:
mode:
authorVincent Breitmoser <valodim@mugenguild.com>2015-11-03 00:30:12 +0100
committerDominik Schürmann <dominik@dominikschuermann.de>2015-12-27 14:59:50 +0100
commitfd119bda00bac1cfe6dbcafa2736c65e3624c083 (patch)
tree93de2784b69864a7445d9e068994106f0e6d202d /OpenKeychain/src/main/res/layout
parent54cc08c2917e2872cb79e56410b7c305dcebfef6 (diff)
downloadopen-keychain-fd119bda00bac1cfe6dbcafa2736c65e3624c083.tar.gz
open-keychain-fd119bda00bac1cfe6dbcafa2736c65e3624c083.tar.bz2
open-keychain-fd119bda00bac1cfe6dbcafa2736c65e3624c083.zip
extend-uid: use FAB instead of extra list item
Diffstat (limited to 'OpenKeychain/src/main/res/layout')
-rw-r--r--OpenKeychain/src/main/res/layout/view_key_adv_main_fragment.xml122
1 files changed, 67 insertions, 55 deletions
diff --git a/OpenKeychain/src/main/res/layout/view_key_adv_main_fragment.xml b/OpenKeychain/src/main/res/layout/view_key_adv_main_fragment.xml
index d36c09ea1..ab0c59865 100644
--- a/OpenKeychain/src/main/res/layout/view_key_adv_main_fragment.xml
+++ b/OpenKeychain/src/main/res/layout/view_key_adv_main_fragment.xml
@@ -1,74 +1,86 @@
-<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
+<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">
- <!-- focusable and related properties to workaround http://stackoverflow.com/q/16182331-->
- <LinearLayout
+ <ScrollView
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" />
+ android:layout_height="match_parent">
+ <!-- focusable and related properties to workaround http://stackoverflow.com/q/16182331-->
<LinearLayout
- android:layout_width="wrap_content"
+ android:layout_width="match_parent"
android:layout_height="wrap_content"
+ android:focusable="true"
+ android:focusableInTouchMode="true"
+ android:descendantFocusability="beforeDescendants"
android:orientation="vertical"
- android:id="@+id/view_key_user_ids_add_layout"
- android:visibility="gone"
- tools:visibility="visible">
+ android:paddingLeft="16dp"
+ android:paddingRight="16dp">
- <View
- android:layout_width="match_parent"
- android:layout_height="1dip"
- android:background="?android:attr/listDivider" />
+ <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_added"
+ android:id="@+id/view_key_user_ids"
android:layout_width="match_parent"
- android:layout_height="wrap_content" />
+ android:layout_height="0dp"
+ android:layout_marginBottom="4dp"
+ android:layout_weight="1" />
- <View
- android:layout_width="match_parent"
- android:layout_height="1dip"
- android:background="?android:attr/listDivider" />
+ <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">
- <TextView
- android:id="@+id/view_key_action_add_user_id"
- android:paddingLeft="8dp"
- android:paddingRight="8dp"
- android:textAppearance="?android:attr/textAppearanceMedium"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:text="@string/edit_key_action_add_identity"
- android:minHeight="?android:attr/listPreferredItemHeight"
- android:drawableRight="@drawable/ic_person_add_grey_24dp"
- android:drawablePadding="8dp"
- android:gravity="center_vertical"
- android:clickable="true"
- style="?android:attr/borderlessButtonStyle" />
+ <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>
- </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_user_id_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_user_id_fab"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_margin="24dp"
+ android:src="@drawable/ic_person_add_grey_24dp"
+ android:visibility="invisible"
+ android:layout_gravity="bottom"
+ tools:visibility="visible" />
+
+ </ViewAnimator>
-</ScrollView>
+</RelativeLayout>