diff options
author | Vincent Breitmoser <valodim@mugenguild.com> | 2015-11-14 03:24:07 +0100 |
---|---|---|
committer | Dominik Schürmann <dominik@dominikschuermann.de> | 2015-12-27 15:00:14 +0100 |
commit | 00e97586b06e5e61f6639b75423f9ec3edba47a0 (patch) | |
tree | 594795a6d66d4d3f0a09a0b9108b2d533691397f /OpenKeychain/src/main/res/layout | |
parent | fd119bda00bac1cfe6dbcafa2736c65e3624c083 (diff) | |
download | open-keychain-00e97586b06e5e61f6639b75423f9ec3edba47a0.tar.gz open-keychain-00e97586b06e5e61f6639b75423f9ec3edba47a0.tar.bz2 open-keychain-00e97586b06e5e61f6639b75423f9ec3edba47a0.zip |
inline subkey editing (wip commit)
Diffstat (limited to 'OpenKeychain/src/main/res/layout')
-rw-r--r-- | OpenKeychain/src/main/res/layout/view_key_adv_main_fragment.xml | 4 | ||||
-rw-r--r-- | OpenKeychain/src/main/res/layout/view_key_adv_subkeys_fragment.xml | 104 |
2 files changed, 81 insertions, 27 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 ab0c59865..98ee2d492 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 @@ -63,7 +63,7 @@ android:layout_alignParentRight="true" android:layout_alignParentEnd="true" android:layout_alignParentBottom="true" - android:id="@+id/view_key_user_id_fab_layout" + android:id="@+id/view_key_subkey_fab_layout" android:inAnimation="@anim/fab_slide_in" android:outAnimation="@anim/fab_slide_down"> @@ -72,7 +72,7 @@ android:layout_height="wrap_content" /> <android.support.design.widget.FloatingActionButton - android:id="@+id/view_key_user_id_fab" + android:id="@+id/view_key_subkey_fab" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_margin="24dp" diff --git a/OpenKeychain/src/main/res/layout/view_key_adv_subkeys_fragment.xml b/OpenKeychain/src/main/res/layout/view_key_adv_subkeys_fragment.xml index 62fd113f9..c86b32349 100644 --- a/OpenKeychain/src/main/res/layout/view_key_adv_subkeys_fragment.xml +++ b/OpenKeychain/src/main/res/layout/view_key_adv_subkeys_fragment.xml @@ -1,34 +1,88 @@ <?xml version="1.0" encoding="utf-8"?> -<LinearLayout 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"> + +<ScrollView android:layout_width="match_parent" - android:layout_height="match_parent" - android:focusable="true" - android:focusableInTouchMode="true" - android:descendantFocusability="beforeDescendants" - android:orientation="vertical"> - - <TextView - style="@style/SectionHeader" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginBottom="4dp" - android:layout_marginTop="8dp" - android:layout_marginLeft="16dp" - android:layout_marginRight="16dp" - android:text="@string/section_keys" /> + android:layout_height="match_parent"> - <FrameLayout + <!-- focusable and related properties to workaround http://stackoverflow.com/q/16182331--> + <LinearLayout android:layout_width="match_parent" - android:layout_height="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_keys" + android:layout_weight="1" /> - <ListView + <org.sufficientlysecure.keychain.ui.widget.FixedListView android:id="@+id/keys" android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_marginBottom="4dp" + android:layout_weight="1" + android:scrollbarStyle="outsideOverlay" /> + + <LinearLayout + android:layout_width="wrap_content" android:layout_height="wrap_content" - android:scrollbarStyle="outsideOverlay" - android:paddingLeft="16dp" - android:paddingRight="16dp" - android:layout_marginBottom="8dp" /> - </FrameLayout> + android:orientation="vertical" + android:id="@+id/view_key_subkeys_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_subkeys_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_person_add_grey_24dp" + android:visibility="invisible" + android:layout_gravity="bottom" + tools:visibility="visible" /> + +</ViewAnimator> -</LinearLayout>
\ No newline at end of file +</RelativeLayout> |