From bb99b7f47b9e92d4b711d7ffb1e3b510fe7f6f19 Mon Sep 17 00:00:00 2001 From: Dmitry Yunitsky Date: Thu, 21 May 2015 15:04:35 +0300 Subject: [PATCH] Base map buttons changes. --- .../{bg_btn_zoom.xml => bg_btn_green.xml} | 5 +- ...bg_toolbar_button.xml => bg_btn_white.xml} | 8 +- android/res/layout-land/activity_map.xml | 4 +- .../res/layout-sw600dp-land/activity_map.xml | 4 +- ...tom_toolbar.xml => map_bottom_buttons.xml} | 8 +- android/res/layout-sw600dp/activity_map.xml | 4 +- .../layout-sw600dp/map_navigation_buttons.xml | 7 +- .../layout-sw600dp/map_turn_instructions.xml | 2 +- android/res/layout-sw720dp/activity_map.xml | 4 +- ...tom_toolbar.xml => map_bottom_buttons.xml} | 8 +- android/res/layout/activity_map.xml | 27 ++-- android/res/layout/item_bookmark.xml | 2 +- android/res/layout/item_bookmark_category.xml | 2 +- android/res/layout/item_category_title.xml | 1 + android/res/layout/map_bottom_buttons.xml | 43 +++++ android/res/layout/map_bottom_toolbar.xml | 69 -------- android/res/layout/map_navigation_buttons.xml | 31 ++-- android/res/layout/map_turn_instructions.xml | 2 +- android/res/layout/toolbar_default.xml | 4 +- android/res/values-sw600dp-land/styles.xml | 2 +- android/res/values-sw720dp/styles.xml | 2 +- android/res/values/styles.xml | 27 ++-- .../maps/LocationButtonImageSetter.java | 15 +- .../src/com/mapswithme/maps/MWMActivity.java | 151 ++++-------------- 24 files changed, 154 insertions(+), 278 deletions(-) rename android/res/drawable/{bg_btn_zoom.xml => bg_btn_green.xml} (66%) rename android/res/drawable/{bg_toolbar_button.xml => bg_btn_white.xml} (60%) rename android/res/layout-sw600dp-land/{map_bottom_toolbar.xml => map_bottom_buttons.xml} (87%) rename android/res/layout-sw720dp/{map_bottom_toolbar.xml => map_bottom_buttons.xml} (87%) create mode 100644 android/res/layout/map_bottom_buttons.xml delete mode 100644 android/res/layout/map_bottom_toolbar.xml diff --git a/android/res/drawable/bg_btn_zoom.xml b/android/res/drawable/bg_btn_green.xml similarity index 66% rename from android/res/drawable/bg_btn_zoom.xml rename to android/res/drawable/bg_btn_green.xml index 04e7b71880..08dda5a31a 100644 --- a/android/res/drawable/bg_btn_zoom.xml +++ b/android/res/drawable/bg_btn_green.xml @@ -5,7 +5,8 @@ android:exitFadeDuration="200" tools:ignore="UnusedAttribute"> - - + + \ No newline at end of file diff --git a/android/res/drawable/bg_toolbar_button.xml b/android/res/drawable/bg_btn_white.xml similarity index 60% rename from android/res/drawable/bg_toolbar_button.xml rename to android/res/drawable/bg_btn_white.xml index aee7c8aad8..d58c897343 100644 --- a/android/res/drawable/bg_toolbar_button.xml +++ b/android/res/drawable/bg_btn_white.xml @@ -5,10 +5,8 @@ android:exitFadeDuration="200" tools:ignore="UnusedAttribute"> - - - - + + \ No newline at end of file diff --git a/android/res/layout-land/activity_map.xml b/android/res/layout-land/activity_map.xml index 7955458a9a..cb50a81178 100644 --- a/android/res/layout-land/activity_map.xml +++ b/android/res/layout-land/activity_map.xml @@ -48,8 +48,8 @@ android:visibility="gone"/> diff --git a/android/res/layout-sw600dp-land/activity_map.xml b/android/res/layout-sw600dp-land/activity_map.xml index fcfbec4a02..a2e411be31 100644 --- a/android/res/layout-sw600dp-land/activity_map.xml +++ b/android/res/layout-sw600dp-land/activity_map.xml @@ -55,8 +55,8 @@ android:layout_margin="@dimen/margin_medium"/> + android:layout_height="match_parent"> + android:layout_width="match_parent" + android:layout_height="match_parent"/> - - - \ No newline at end of file diff --git a/android/res/layout/item_bookmark.xml b/android/res/layout/item_bookmark.xml index 6de5a2a973..74c9c0a09e 100644 --- a/android/res/layout/item_bookmark.xml +++ b/android/res/layout/item_bookmark.xml @@ -29,6 +29,6 @@ android:layout_alignParentRight="true" android:layout_centerVertical="true" android:layout_marginRight="@dimen/dp_x_4" - android:textAppearance="@style/MwmTextAppearance.Body3"/> + android:textAppearance="@style/MwmTextAppearance.Body2"/> \ No newline at end of file diff --git a/android/res/layout/item_bookmark_category.xml b/android/res/layout/item_bookmark_category.xml index 777c3fb191..2c45b77140 100644 --- a/android/res/layout/item_bookmark_category.xml +++ b/android/res/layout/item_bookmark_category.xml @@ -32,6 +32,6 @@ android:layout_height="wrap_content" android:layout_weight="0" android:gravity="right" - android:textAppearance="@style/MwmTextAppearance.Body3"/> + android:textAppearance="@style/MwmTextAppearance.Body2"/> \ No newline at end of file diff --git a/android/res/layout/item_category_title.xml b/android/res/layout/item_category_title.xml index 5c0e085d1e..1c08b82b72 100644 --- a/android/res/layout/item_category_title.xml +++ b/android/res/layout/item_category_title.xml @@ -7,4 +7,5 @@ android:gravity="left|center_vertical" android:paddingLeft="@dimen/margin_medium" android:paddingTop="@dimen/margin_small" + android:textAppearance="@style/MwmTextAppearance.Body3" android:text="@string/bookmarks"/> \ No newline at end of file diff --git a/android/res/layout/map_bottom_buttons.xml b/android/res/layout/map_bottom_buttons.xml new file mode 100644 index 0000000000..296e41c13c --- /dev/null +++ b/android/res/layout/map_bottom_buttons.xml @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/android/res/layout/map_bottom_toolbar.xml b/android/res/layout/map_bottom_toolbar.xml deleted file mode 100644 index 4eebd9cdfa..0000000000 --- a/android/res/layout/map_bottom_toolbar.xml +++ /dev/null @@ -1,69 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/android/res/layout/map_navigation_buttons.xml b/android/res/layout/map_navigation_buttons.xml index 0b1bd97723..7545f14b20 100644 --- a/android/res/layout/map_navigation_buttons.xml +++ b/android/res/layout/map_navigation_buttons.xml @@ -1,45 +1,40 @@ + android:padding="@dimen/margin_small"> + + + android:layout_centerVertical="true"/> + android:src="@drawable/btn_white_zoom_in"/> + android:src="@drawable/btn_white_zoom_out"/> diff --git a/android/res/layout/map_turn_instructions.xml b/android/res/layout/map_turn_instructions.xml index d520bb5e6f..21259b1425 100644 --- a/android/res/layout/map_turn_instructions.xml +++ b/android/res/layout/map_turn_instructions.xml @@ -1,6 +1,6 @@ \ No newline at end of file + android:theme="@style/MwmWidget.Toolbar" + style="@style/MwmWidget.Toolbar"/> + \ No newline at end of file diff --git a/android/res/values-sw600dp-land/styles.xml b/android/res/values-sw600dp-land/styles.xml index 976f173c51..d8b2c142d2 100644 --- a/android/res/values-sw600dp-land/styles.xml +++ b/android/res/values-sw600dp-land/styles.xml @@ -1,7 +1,7 @@ - \ No newline at end of file diff --git a/android/res/values-sw720dp/styles.xml b/android/res/values-sw720dp/styles.xml index 976f173c51..d8b2c142d2 100644 --- a/android/res/values-sw720dp/styles.xml +++ b/android/res/values-sw720dp/styles.xml @@ -1,7 +1,7 @@ - \ No newline at end of file diff --git a/android/res/values/styles.xml b/android/res/values/styles.xml index b393c86e82..2d3aae7488 100644 --- a/android/res/values/styles.xml +++ b/android/res/values/styles.xml @@ -9,6 +9,8 @@ ?attr/selectableItemBackground @style/MwmWidget.ListView @style/MwmWidget.TextView + 150dp + 150dp stateUnspecified|adjustPan @android:color/white @null @@ -50,18 +52,19 @@ - + +