From 9e36e0d9c6bedec3238717fe694fd0bf16480bb9 Mon Sep 17 00:00:00 2001 From: Samuel Holland Date: Wed, 16 Aug 2017 01:20:36 -0500 Subject: ConfigActivity: Make the two-pane layout more readable Highlight the selected configuration, and add a border between the two panes. Signed-off-by: Jason A. Donenfeld --- app/src/main/res/drawable/list_item_background.xml | 5 +++++ app/src/main/res/drawable/list_item_background_anim.xml | 5 +++++ app/src/main/res/layout-land/config_activity.xml | 3 +++ app/src/main/res/layout/config_detail_fragment.xml | 3 ++- app/src/main/res/layout/config_edit_fragment.xml | 3 ++- app/src/main/res/layout/config_list_item.xml | 1 + app/src/main/res/layout/placeholder_fragment.xml | 1 + app/src/main/res/values/colors.xml | 5 +++++ 8 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 app/src/main/res/drawable/list_item_background.xml create mode 100644 app/src/main/res/drawable/list_item_background_anim.xml create mode 100644 app/src/main/res/values/colors.xml (limited to 'app/src/main') diff --git a/app/src/main/res/drawable/list_item_background.xml b/app/src/main/res/drawable/list_item_background.xml new file mode 100644 index 00000000..f005ac1d --- /dev/null +++ b/app/src/main/res/drawable/list_item_background.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/app/src/main/res/drawable/list_item_background_anim.xml b/app/src/main/res/drawable/list_item_background_anim.xml new file mode 100644 index 00000000..2e962eb1 --- /dev/null +++ b/app/src/main/res/drawable/list_item_background_anim.xml @@ -0,0 +1,5 @@ + + + + diff --git a/app/src/main/res/layout-land/config_activity.xml b/app/src/main/res/layout-land/config_activity.xml index b9c729fa..6b327e01 100644 --- a/app/src/main/res/layout-land/config_activity.xml +++ b/app/src/main/res/layout-land/config_activity.xml @@ -17,5 +17,8 @@ android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="2" + android:background="?android:attr/colorPrimary" + android:paddingEnd="0dp" + android:paddingStart="4dp" tools:ignore="InconsistentLayout" /> diff --git a/app/src/main/res/layout/config_detail_fragment.xml b/app/src/main/res/layout/config_detail_fragment.xml index 1bae0450..add03c08 100644 --- a/app/src/main/res/layout/config_detail_fragment.xml +++ b/app/src/main/res/layout/config_detail_fragment.xml @@ -10,7 +10,8 @@ + android:layout_height="match_parent" + android:background="?android:attr/colorBackground"> + android:layout_height="match_parent" + android:background="?android:attr/colorBackground"> diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml new file mode 100644 index 00000000..47a2d2b4 --- /dev/null +++ b/app/src/main/res/values/colors.xml @@ -0,0 +1,5 @@ + + + #cfd8dc + #808e95 + -- cgit v1.2.3