From dde4bc18bbead42d8d1c9c6c955bd7342a45abf6 Mon Sep 17 00:00:00 2001 From: androiddevkkotlin Date: Fri, 13 Nov 2020 14:03:54 +0200 Subject: [PATCH 1/5] Fix appearance --- OsmAnd/res/layout/send_gpx_fragment.xml | 19 ++++++++++++------- .../dialogs/SendGpxBottomSheetFragment.java | 1 + 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/OsmAnd/res/layout/send_gpx_fragment.xml b/OsmAnd/res/layout/send_gpx_fragment.xml index 333030a190..7981ad801f 100644 --- a/OsmAnd/res/layout/send_gpx_fragment.xml +++ b/OsmAnd/res/layout/send_gpx_fragment.xml @@ -41,7 +41,9 @@ android:id="@+id/message_field" android:layout_width="match_parent" android:layout_height="wrap_content" - android:imeOptions="actionDone" /> + android:imeOptions="actionDone" + android:background = "#E5E5E5" + android:paddingTop = "@dimen/empty_state_image_margin_bottom"/> + android:text="osmand" + android:background = "#E5E5E5" + android:paddingTop = "@dimen/empty_state_image_margin_bottom"/> @@ -86,7 +90,7 @@ android:paddingBottom="@dimen/context_menu_first_line_top_margin" android:text="@string/gpx_visibility_txt" android:textColor="?android:textColorPrimary" - android:textSize="@dimen/default_desc_text_size" + android:textSize="@dimen/default_list_text_size" osmand:typeface="@string/font_roboto_regular" /> diff --git a/OsmAnd/src/net/osmand/plus/osmedit/dialogs/SendGpxBottomSheetFragment.java b/OsmAnd/src/net/osmand/plus/osmedit/dialogs/SendGpxBottomSheetFragment.java index c47f757a92..35c6a6ec69 100644 --- a/OsmAnd/src/net/osmand/plus/osmedit/dialogs/SendGpxBottomSheetFragment.java +++ b/OsmAnd/src/net/osmand/plus/osmedit/dialogs/SendGpxBottomSheetFragment.java @@ -71,6 +71,7 @@ public class SendGpxBottomSheetFragment extends MenuBottomSheetDialogFragment { String fileName = gpxInfos[0].getFileName(); messageField.setText(Algorithms.getFileNameWithoutExtension(fileName)); + messageField.setSelection(messageField.getText().length()); final TextView visibilityName = sendOsmPoiView.findViewById(R.id.visibility_name); final TextView visibilityDescription = sendOsmPoiView.findViewById(R.id.visibility_description); From 2531c6110838e88952359ab2356ac2987e5b7e02 Mon Sep 17 00:00:00 2001 From: androiddevkkotlin Date: Fri, 13 Nov 2020 14:20:08 +0200 Subject: [PATCH 2/5] Account block --- OsmAnd/res/layout/send_gpx_fragment.xml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/OsmAnd/res/layout/send_gpx_fragment.xml b/OsmAnd/res/layout/send_gpx_fragment.xml index 7981ad801f..c689b53086 100644 --- a/OsmAnd/res/layout/send_gpx_fragment.xml +++ b/OsmAnd/res/layout/send_gpx_fragment.xml @@ -180,7 +180,8 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:ellipsize="marquee" - android:letterSpacing="@dimen/text_button_letter_spacing" + android:letterSpacing="@dimen/description_letter_spacing" + android:lineSpacingExtra="@dimen/map_widget_text_small_bottom_margin" android:singleLine="true" android:text="@string/login_account" android:textColor="?android:textColorSecondary" @@ -191,10 +192,11 @@ android:id="@+id/user_name" android:layout_width="match_parent" android:layout_height="wrap_content" - android:letterSpacing="@dimen/description_letter_spacing" + android:letterSpacing="@dimen/text_button_letter_spacing" + android:lineSpacingExtra="5dp" android:maxLines="4" android:textColor="?android:textColorPrimary" - android:textSize="@dimen/default_list_text_size" + android:textSize="@dimen/default_desc_text_size" osmand:typeface="@string/font_roboto_regular" /> From 130469d8114b9aa33273522694347127baf93ced Mon Sep 17 00:00:00 2001 From: androiddevkkotlin Date: Fri, 13 Nov 2020 16:08:42 +0200 Subject: [PATCH 3/5] Color Material --- OsmAnd/res/layout/send_gpx_fragment.xml | 7 +++---- OsmAnd/res/values/attrs.xml | 1 + OsmAnd/res/values/colors.xml | 2 ++ OsmAnd/res/values/styles.xml | 2 ++ 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/OsmAnd/res/layout/send_gpx_fragment.xml b/OsmAnd/res/layout/send_gpx_fragment.xml index c689b53086..5f66120778 100644 --- a/OsmAnd/res/layout/send_gpx_fragment.xml +++ b/OsmAnd/res/layout/send_gpx_fragment.xml @@ -40,9 +40,9 @@ @@ -62,9 +62,8 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:imeOptions="actionDone" - android:text="osmand" - android:background = "#E5E5E5" - android:paddingTop = "@dimen/empty_state_image_margin_bottom"/> + android:background = "?attr/background_field" + android:text="osmand" /> diff --git a/OsmAnd/res/values/attrs.xml b/OsmAnd/res/values/attrs.xml index 8e8c8aee32..3ef63acbbd 100644 --- a/OsmAnd/res/values/attrs.xml +++ b/OsmAnd/res/values/attrs.xml @@ -138,6 +138,7 @@ + diff --git a/OsmAnd/res/values/colors.xml b/OsmAnd/res/values/colors.xml index 1b1e9bde50..ccb1b4f54f 100644 --- a/OsmAnd/res/values/colors.xml +++ b/OsmAnd/res/values/colors.xml @@ -477,5 +477,7 @@ #80D28521 #80000000 #4DCCCCCC + #14000000 + #0DFFFFFF \ No newline at end of file diff --git a/OsmAnd/res/values/styles.xml b/OsmAnd/res/values/styles.xml index d96c5fa196..75c5530c95 100644 --- a/OsmAnd/res/values/styles.xml +++ b/OsmAnd/res/values/styles.xml @@ -245,6 +245,7 @@ @drawable/radio_button_center_light @style/CheckboxStyle @style/RadioButtonStyle + @color/background_field_light