From f98ad9ae9eee902d2bdf51825e0542876c94e8a4 Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Mon, 23 Dec 2019 16:21:24 +0200 Subject: [PATCH 1/3] Small profiles fixes --- OsmAnd/res/layout/bottom_buttons.xml | 30 +++++++ OsmAnd/res/layout/bottom_sheet_menu_base.xml | 28 +----- .../layout/edit_profiles_list_fragment.xml | 23 +---- .../layout/preference_cancel_save_button.xml | 44 --------- .../res/layout/preference_dropdown_list.xml | 89 ++++++++++--------- OsmAnd/res/layout/preference_text_field.xml | 49 +++++----- OsmAnd/res/xml/navigation_settings_new.xml | 14 +-- .../src/net/osmand/plus/ApplicationMode.java | 26 ++++-- .../plus/profiles/EditProfilesFragment.java | 21 ++--- .../plus/settings/MainSettingsFragment.java | 5 +- .../plus/settings/NavigationFragment.java | 3 +- .../settings/ProfileAppearanceFragment.java | 24 +++-- 12 files changed, 163 insertions(+), 193 deletions(-) create mode 100644 OsmAnd/res/layout/bottom_buttons.xml delete mode 100644 OsmAnd/res/layout/preference_cancel_save_button.xml diff --git a/OsmAnd/res/layout/bottom_buttons.xml b/OsmAnd/res/layout/bottom_buttons.xml new file mode 100644 index 0000000000..6c40ad7130 --- /dev/null +++ b/OsmAnd/res/layout/bottom_buttons.xml @@ -0,0 +1,30 @@ + + + + + + + + + + \ No newline at end of file diff --git a/OsmAnd/res/layout/bottom_sheet_menu_base.xml b/OsmAnd/res/layout/bottom_sheet_menu_base.xml index 19aa0c91b7..323d5569e1 100644 --- a/OsmAnd/res/layout/bottom_sheet_menu_base.xml +++ b/OsmAnd/res/layout/bottom_sheet_menu_base.xml @@ -26,32 +26,6 @@ android:orientation="vertical" android:visibility="gone" /> - - - - - - - - - + diff --git a/OsmAnd/res/layout/edit_profiles_list_fragment.xml b/OsmAnd/res/layout/edit_profiles_list_fragment.xml index 53d992555a..36eaaaf6cc 100644 --- a/OsmAnd/res/layout/edit_profiles_list_fragment.xml +++ b/OsmAnd/res/layout/edit_profiles_list_fragment.xml @@ -36,32 +36,17 @@ android:id="@+id/buttons_shadow" android:layout_width="match_parent" android:layout_height="10dp" - android:layout_gravity="bottom" android:background="@drawable/bg_contextmenu_shadow_top_light" /> + android:background="?attr/list_background_color"> - - - - + layout="@layout/bottom_buttons" + android:layout_width="match_parent" + android:layout_height="@dimen/dialog_button_ex_height" /> diff --git a/OsmAnd/res/layout/preference_cancel_save_button.xml b/OsmAnd/res/layout/preference_cancel_save_button.xml deleted file mode 100644 index ac9d07b7b1..0000000000 --- a/OsmAnd/res/layout/preference_cancel_save_button.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - -