From 1e08577dd197081c988bafebdd60e93856fc1737 Mon Sep 17 00:00:00 2001 From: Arnaud Vergnet Date: Fri, 12 Aug 2022 17:12:17 +0200 Subject: [PATCH] [android] try to match previous map buttons layout Signed-off-by: Arnaud Vergnet --- .../map_buttons_layout_navigation.xml | 2 +- .../map_buttons_layout_planning.xml | 2 +- .../map_buttons_layout_regular.xml | 42 +++++++++-------- .../map_buttons_search_frame.xml | 2 - .../layout/map_buttons_bookmarks_square.xml | 9 ++++ android/res/layout/map_buttons_help.xml | 4 +- .../layout/map_buttons_layout_planning.xml | 6 +-- .../res/layout/map_buttons_layout_regular.xml | 47 ++++++++++--------- android/res/layout/map_buttons_menu.xml | 4 +- .../res/layout/map_buttons_search_frame.xml | 2 - .../res/layout/map_buttons_search_square.xml | 9 ++++ android/res/values/colors.xml | 2 + android/res/values/dimens.xml | 1 + android/res/values/styles.xml | 13 ++++- android/res/values/themes-attrs.xml | 1 + android/res/values/themes-base.xml | 2 + 16 files changed, 92 insertions(+), 56 deletions(-) create mode 100644 android/res/layout/map_buttons_bookmarks_square.xml create mode 100644 android/res/layout/map_buttons_search_square.xml diff --git a/android/res/layout-h400dp/map_buttons_layout_navigation.xml b/android/res/layout-h400dp/map_buttons_layout_navigation.xml index a361afd6c2..46ee0141c8 100644 --- a/android/res/layout-h400dp/map_buttons_layout_navigation.xml +++ b/android/res/layout-h400dp/map_buttons_layout_navigation.xml @@ -65,7 +65,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentBottom="true" - android:layout_marginBottom="@dimen/margin_half" + android:layout_marginBottom="@dimen/zoom_buttons_margin" app:layout_constraintBottom_toTopOf="@+id/my_position" app:layout_constraintEnd_toEndOf="parent" /> @@ -41,7 +41,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentBottom="true" - android:layout_marginBottom="@dimen/margin_half" + android:layout_marginBottom="@dimen/zoom_buttons_margin" app:layout_constraintBottom_toTopOf="@+id/my_position" app:layout_constraintEnd_toEndOf="parent" /> - + app:layout_constraintStart_toStartOf="parent" /> + + - \ No newline at end of file diff --git a/android/res/layout-h400dp/map_buttons_search_frame.xml b/android/res/layout-h400dp/map_buttons_search_frame.xml index a772fbd692..7a83602d99 100644 --- a/android/res/layout-h400dp/map_buttons_search_frame.xml +++ b/android/res/layout-h400dp/map_buttons_search_frame.xml @@ -7,7 +7,6 @@ android:layout_height="wrap_content" android:clipChildren="false" android:clipToPadding="false" - android:elevation="6dp" android:layoutDirection="ltr" android:theme="?navButtonsThemeRound"> + \ No newline at end of file diff --git a/android/res/layout/map_buttons_help.xml b/android/res/layout/map_buttons_help.xml index 5e65fe7f41..49951733de 100644 --- a/android/res/layout/map_buttons_help.xml +++ b/android/res/layout/map_buttons_help.xml @@ -1,6 +1,8 @@ \ No newline at end of file diff --git a/android/res/layout/map_buttons_layout_planning.xml b/android/res/layout/map_buttons_layout_planning.xml index fa61856827..f1bfc3c41b 100644 --- a/android/res/layout/map_buttons_layout_planning.xml +++ b/android/res/layout/map_buttons_layout_planning.xml @@ -51,6 +51,8 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentBottom="true" + android:layout_marginStart="@dimen/margin_half" + app:layout_constraintStart_toEndOf="@+id/my_position" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" /> + app:layout_constraintBottom_toBottomOf="parent" /> \ No newline at end of file diff --git a/android/res/layout/map_buttons_layout_regular.xml b/android/res/layout/map_buttons_layout_regular.xml index cff7fda11c..83a6ba9275 100644 --- a/android/res/layout/map_buttons_layout_regular.xml +++ b/android/res/layout/map_buttons_layout_regular.xml @@ -10,7 +10,7 @@ tools:background="@color/bg_primary"> @@ -41,16 +40,16 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentBottom="true" - app:layout_constraintBottom_toBottomOf="parent" + android:layout_marginBottom="@dimen/margin_half" + app:layout_constraintBottom_toTopOf="@+id/my_position" app:layout_constraintEnd_toEndOf="parent" /> + app:layout_constraintEnd_toEndOf="parent" /> - + app:layout_constraintStart_toStartOf="parent" /> + + - \ No newline at end of file diff --git a/android/res/layout/map_buttons_menu.xml b/android/res/layout/map_buttons_menu.xml index ad74c08273..9386c27fb6 100644 --- a/android/res/layout/map_buttons_menu.xml +++ b/android/res/layout/map_buttons_menu.xml @@ -1,6 +1,8 @@ \ No newline at end of file diff --git a/android/res/layout/map_buttons_search_frame.xml b/android/res/layout/map_buttons_search_frame.xml index f732d853a1..2cb4bdc591 100644 --- a/android/res/layout/map_buttons_search_frame.xml +++ b/android/res/layout/map_buttons_search_frame.xml @@ -7,7 +7,6 @@ android:layout_height="wrap_content" android:clipChildren="false" android:clipToPadding="false" - android:elevation="6dp" android:layoutDirection="ltr" android:theme="?navButtonsThemeRect"> + \ No newline at end of file diff --git a/android/res/values/colors.xml b/android/res/values/colors.xml index 83c45dc37a..8fc4f6c431 100644 --- a/android/res/values/colors.xml +++ b/android/res/values/colors.xml @@ -85,6 +85,8 @@ #CCFFFFFF #CC2D3237 + #99FFFFFF + #992D3237 #197841 #14181C diff --git a/android/res/values/dimens.xml b/android/res/values/dimens.xml index 0e5a2387e6..2409ad1c32 100644 --- a/android/res/values/dimens.xml +++ b/android/res/values/dimens.xml @@ -139,6 +139,7 @@ 360dp @dimen/margin_half + 64dp 136dp 12dp diff --git a/android/res/values/styles.xml b/android/res/values/styles.xml index c1713fb780..2b7ded834f 100644 --- a/android/res/values/styles.xml +++ b/android/res/values/styles.xml @@ -12,10 +12,13 @@ @@ -23,6 +26,12 @@ 38dp + +