From c998e4bb8306dff4a4681c1eb8fdcd5e19082d0a Mon Sep 17 00:00:00 2001 From: Nathan Varner Date: Sat, 18 Mar 2023 01:58:17 -0400 Subject: [PATCH] [android] Scale turn lane assistance by device height The Android UI scales the turn lane assistance proportionally to the height of the device, depending on the device's orientation. This allows for a better fit on large and small devices by adapting to their size. Needed for: #1404 Signed-off-by: Nathan Varner --- android/res/layout/layout_nav_top.xml | 4 +++- android/res/layout/nav_lanes.xml | 6 +++--- android/res/layout/nav_single_lane.xml | 6 ++++-- android/res/values-land/fractions.xml | 4 ++++ android/res/values/dimens.xml | 1 - android/res/values/fractions.xml | 4 ++++ 6 files changed, 18 insertions(+), 7 deletions(-) create mode 100644 android/res/values-land/fractions.xml create mode 100644 android/res/values/fractions.xml diff --git a/android/res/layout/layout_nav_top.xml b/android/res/layout/layout_nav_top.xml index e04a4b412c..2b8a9c0e90 100644 --- a/android/res/layout/layout_nav_top.xml +++ b/android/res/layout/layout_nav_top.xml @@ -108,8 +108,10 @@ + + 0.15 + \ No newline at end of file diff --git a/android/res/values/dimens.xml b/android/res/values/dimens.xml index e408417873..cb2367285b 100644 --- a/android/res/values/dimens.xml +++ b/android/res/values/dimens.xml @@ -114,7 +114,6 @@ 70sp 64dp 360dp - 48dp @dimen/margin_half 64dp diff --git a/android/res/values/fractions.xml b/android/res/values/fractions.xml new file mode 100644 index 0000000000..9afc01d472 --- /dev/null +++ b/android/res/values/fractions.xml @@ -0,0 +1,4 @@ + + + 0.08 + \ No newline at end of file