From 03a93db61e574b059320d0e4d61d9ebf70e2dd66 Mon Sep 17 00:00:00 2001 From: GaidamakUA Date: Tue, 29 Dec 2015 10:57:58 +0200 Subject: [PATCH] Design fixes. --- .../live_updates_expendable_list_divider.xml | 1 + OsmAnd/res/layout/action_spinner_item.xml | 12 +++++++ OsmAnd/res/layout/activity_livie_updates.xml | 2 +- .../dialog_live_updates_item_settings.xml | 36 ++++++++++--------- OsmAnd/res/layout/fragment_live_updates.xml | 2 +- .../layout/list_group_title_with_switch.xml | 1 + OsmAnd/res/values/attrs.xml | 2 ++ OsmAnd/res/values/colors.xml | 4 ++- OsmAnd/res/values/styles.xml | 3 ++ .../plus/liveupdates/LiveUpdatesFragment.java | 8 +++-- .../LiveUpdatesSettingsDialogFragment.java | 20 +++++++---- 11 files changed, 63 insertions(+), 28 deletions(-) create mode 100644 OsmAnd/res/layout/action_spinner_item.xml diff --git a/OsmAnd/res/drawable/live_updates_expendable_list_divider.xml b/OsmAnd/res/drawable/live_updates_expendable_list_divider.xml index 24b4c41ebb..c741d89dbe 100644 --- a/OsmAnd/res/drawable/live_updates_expendable_list_divider.xml +++ b/OsmAnd/res/drawable/live_updates_expendable_list_divider.xml @@ -1,5 +1,6 @@ diff --git a/OsmAnd/res/layout/action_spinner_item.xml b/OsmAnd/res/layout/action_spinner_item.xml new file mode 100644 index 0000000000..8bbcf5adaf --- /dev/null +++ b/OsmAnd/res/layout/action_spinner_item.xml @@ -0,0 +1,12 @@ + + + \ No newline at end of file diff --git a/OsmAnd/res/layout/activity_livie_updates.xml b/OsmAnd/res/layout/activity_livie_updates.xml index c752da01e0..db88a3f14e 100644 --- a/OsmAnd/res/layout/activity_livie_updates.xml +++ b/OsmAnd/res/layout/activity_livie_updates.xml @@ -15,7 +15,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" app:layout_scrollFlags="scroll" - android:background="@color/osmand_orange"/> + android:background="?attr/pstsTabBackground"/> @@ -105,14 +106,15 @@ android:layout_marginRight="16dp"> + @@ -172,6 +174,7 @@ android:layout_height="wrap_content" android:layout_gravity="right|center_vertical" android:gravity="center_vertical|right" + android:textColor="?attr/color_dialog_buttons" android:text="@string/shared_string_clear"/> @@ -179,5 +182,6 @@ + android:layout_marginTop="24dp" + android:background="?attr/dashboard_divider"/> \ No newline at end of file diff --git a/OsmAnd/res/layout/fragment_live_updates.xml b/OsmAnd/res/layout/fragment_live_updates.xml index 30bee70ce4..19dc1166a9 100644 --- a/OsmAnd/res/layout/fragment_live_updates.xml +++ b/OsmAnd/res/layout/fragment_live_updates.xml @@ -4,9 +4,9 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" + android:divider="@null" android:footerDividersEnabled="false" android:groupIndicator="@null" android:headerDividersEnabled="false" android:orientation="vertical" tools:context=".liveupdates.LiveUpdatesFragment"/> - diff --git a/OsmAnd/res/layout/list_group_title_with_switch.xml b/OsmAnd/res/layout/list_group_title_with_switch.xml index 12c65a0d28..725ef1eede 100644 --- a/OsmAnd/res/layout/list_group_title_with_switch.xml +++ b/OsmAnd/res/layout/list_group_title_with_switch.xml @@ -30,6 +30,7 @@ android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" + android:textColor="?android:attr/textColorPrimary" tools:text="Live updates"/> + + diff --git a/OsmAnd/res/values/colors.xml b/OsmAnd/res/values/colors.xml index 9098cd2756..dfa5fa6f1c 100644 --- a/OsmAnd/res/values/colors.xml +++ b/OsmAnd/res/values/colors.xml @@ -177,7 +177,9 @@ #e68200 #ccc - #2f7af5 + #2f7af5 + #ff8800 + #78909c diff --git a/OsmAnd/res/values/styles.xml b/OsmAnd/res/values/styles.xml index 19372c6886..eb99ccec3f 100644 --- a/OsmAnd/res/values/styles.xml +++ b/OsmAnd/res/values/styles.xml @@ -117,6 +117,7 @@ @color/icon_color @color/map_widget_blue + @color/color_dialog_buttons_light