From d6dbf27e148f1eaa5b8e1642cc915b8e6b394377 Mon Sep 17 00:00:00 2001 From: PavelRatushny Date: Mon, 23 Oct 2017 18:58:38 +0300 Subject: [PATCH] Auto size text and keyboard styling --- OsmAnd/res/drawable/keyboard_item_dark_bg.xml | 4 +- .../keyboard_item_text_color_light.xml | 5 ++ .../fragment_coordinate_input_dialog.xml | 25 ++++--- ...ent_marker_options_bottom_sheet_dialog.xml | 1 - .../layout/input_coordinate_keyboard_item.xml | 10 +-- OsmAnd/res/values/attrs.xml | 1 + OsmAnd/res/values/colors.xml | 5 +- OsmAnd/res/values/styles.xml | 4 ++ OsmAnd/src/net/osmand/AndroidUtils.java | 12 ++-- .../CoordinateInputDialogFragment.java | 68 +++++++++++-------- 10 files changed, 82 insertions(+), 53 deletions(-) create mode 100644 OsmAnd/res/drawable/keyboard_item_text_color_light.xml diff --git a/OsmAnd/res/drawable/keyboard_item_dark_bg.xml b/OsmAnd/res/drawable/keyboard_item_dark_bg.xml index b4a642e69e..533eb8eaf9 100644 --- a/OsmAnd/res/drawable/keyboard_item_dark_bg.xml +++ b/OsmAnd/res/drawable/keyboard_item_dark_bg.xml @@ -1,7 +1,7 @@ - - + + \ No newline at end of file diff --git a/OsmAnd/res/drawable/keyboard_item_text_color_light.xml b/OsmAnd/res/drawable/keyboard_item_text_color_light.xml new file mode 100644 index 0000000000..47019c86f1 --- /dev/null +++ b/OsmAnd/res/drawable/keyboard_item_text_color_light.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/OsmAnd/res/layout/fragment_coordinate_input_dialog.xml b/OsmAnd/res/layout/fragment_coordinate_input_dialog.xml index df67805097..553f11ddc3 100644 --- a/OsmAnd/res/layout/fragment_coordinate_input_dialog.xml +++ b/OsmAnd/res/layout/fragment_coordinate_input_dialog.xml @@ -1,10 +1,10 @@ + xmlns:tools="http://schemas.android.com/tools"> + osmand:contentInsetLeft="54dp" + osmand:contentInsetStart="54dp"> + osmand:labelText="@string/navigate_point_latitude"> + osmand:labelText="@string/navigate_point_longitude"> + osmand:labelText="@string/shared_string_name"> + tools:src="@drawable/ic_action_arrow_down"/> - diff --git a/OsmAnd/res/layout/fragment_marker_options_bottom_sheet_dialog.xml b/OsmAnd/res/layout/fragment_marker_options_bottom_sheet_dialog.xml index ab56b39923..d6ccfd5352 100644 --- a/OsmAnd/res/layout/fragment_marker_options_bottom_sheet_dialog.xml +++ b/OsmAnd/res/layout/fragment_marker_options_bottom_sheet_dialog.xml @@ -112,7 +112,6 @@ android:background="?attr/dashboard_divider"/> - \ No newline at end of file diff --git a/OsmAnd/res/values/attrs.xml b/OsmAnd/res/values/attrs.xml index 607dd9269b..9770a92a98 100644 --- a/OsmAnd/res/values/attrs.xml +++ b/OsmAnd/res/values/attrs.xml @@ -8,6 +8,7 @@ + diff --git a/OsmAnd/res/values/colors.xml b/OsmAnd/res/values/colors.xml index 82634e5bfa..715564f2a0 100644 --- a/OsmAnd/res/values/colors.xml +++ b/OsmAnd/res/values/colors.xml @@ -264,6 +264,9 @@ #525e66 - #545454 + #545454 + #ffffff + + #ffffff \ No newline at end of file diff --git a/OsmAnd/res/values/styles.xml b/OsmAnd/res/values/styles.xml index e558b60677..2dea7d5aae 100644 --- a/OsmAnd/res/values/styles.xml +++ b/OsmAnd/res/values/styles.xml @@ -171,6 +171,8 @@ @color/color_dialog_buttons_light @style/PopupMenuLight + + @drawable/keyboard_item_text_color_light