From 27fe223dd014d9a3cf9e5c64185cbe0a6802af33 Mon Sep 17 00:00:00 2001
From: androiddevkotlin <64539346+androiddevkotlin@users.noreply.github.com>
Date: Wed, 3 Feb 2021 15:29:00 +0200
Subject: [PATCH 1/3] Missed text in UI
"Get" button in "Downloads.
OsmAnd Live screen after purchase.
---
OsmAnd/res/layout/subscription_fragment.xml | 143 +++++++++---------
.../layout/two_line_with_images_list_item.xml | 28 ++--
2 files changed, 85 insertions(+), 86 deletions(-)
diff --git a/OsmAnd/res/layout/subscription_fragment.xml b/OsmAnd/res/layout/subscription_fragment.xml
index 59b6f9b1b8..2ab9967918 100644
--- a/OsmAnd/res/layout/subscription_fragment.xml
+++ b/OsmAnd/res/layout/subscription_fragment.xml
@@ -1,5 +1,4 @@
-
@@ -19,19 +18,19 @@
android:layout_width="52dp"
android:layout_height="52dp"
android:contentDescription="@string/shared_string_close"
- app:srcCompat="@drawable/ic_action_remove_dark"/>
+ app:srcCompat="@drawable/ic_action_remove_dark" />
+ app:typeface="@string/font_roboto_regular" />
@@ -39,7 +38,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent">
-
+
@@ -76,54 +75,54 @@
android:layout_width="56dp"
android:layout_height="48dp"
android:scaleType="center"
- app:srcCompat="@drawable/ic_action_osm_live"
- android:tint="@color/osmand_orange"/>
+ android:tint="@color/osmand_orange"
+ app:srcCompat="@drawable/ic_action_osm_live" />
+ android:textColor="?android:attr/textColorPrimary" />
+ android:orientation="horizontal">
+ android:text="@string/donation_to_osm" />
+ android:layout_marginStart="@dimen/list_content_padding_large"
+ android:layout_marginLeft="@dimen/context_menu_progress_padding_left"
+ android:layout_marginEnd="@dimen/context_menu_progress_padding_left"
+ android:layout_marginRight="@dimen/context_menu_progress_padding_left"
+ android:paddingStart="@dimen/subHeaderPadding"
+ android:paddingLeft="@dimen/subHeaderPadding"
+ android:paddingEnd="@dimen/subHeaderPadding"
+ android:paddingRight="@dimen/subHeaderPadding"
+ android:text="@string/donation_to_osm_desc" />
@@ -140,13 +139,13 @@
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginBottom="6dp"
- android:background="?attr/dashboard_divider"/>
+ android:background="?attr/dashboard_divider" />
@@ -155,47 +154,47 @@
android:layout_width="56dp"
android:layout_height="48dp"
android:scaleType="center"
- app:srcCompat="@drawable/ic_world_globe_dark"/>
+ app:srcCompat="@drawable/ic_world_globe_dark" />
+ android:layout_marginEnd="16dp"
+ android:layout_marginRight="16dp"
+ android:orientation="vertical">
+ android:textColor="?android:attr/textColorSecondary" />
+ app:drawableEndCompat="@drawable/ic_action_arrow_drop_down"
+ app:drawableRightCompat="@drawable/ic_action_arrow_drop_down" />
+ android:textColor="?android:attr/textColorSecondary" />
@@ -213,21 +212,21 @@
android:layout_width="56dp"
android:layout_height="48dp"
android:scaleType="center"
- app:srcCompat="@drawable/ic_action_message"/>
+ app:srcCompat="@drawable/ic_action_message" />
+ android:paddingStart="2dp"
+ android:paddingLeft="2dp" />
@@ -235,14 +234,14 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
+ android:layout_marginStart="72dp"
android:layout_marginLeft="72dp"
+ android:layout_marginEnd="16dp"
android:layout_marginRight="16dp"
+ android:paddingStart="2dp"
android:paddingLeft="2dp"
android:text="@string/osm_live_email_desc"
- android:textColor="?android:attr/textColorSecondary"
- android:paddingStart="2dp"
- android:layout_marginStart="72dp"
- android:layout_marginEnd="16dp" />
+ android:textColor="?android:attr/textColorSecondary" />
+ app:srcCompat="@drawable/ic_action_user" />
+ android:paddingStart="2dp"
+ android:paddingLeft="2dp" />
@@ -284,16 +283,16 @@
android:id="@+id/hideUserNameCheckbox"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_marginBottom="12dp"
+ android:layout_marginStart="72dp"
android:layout_marginLeft="72dp"
- android:layout_marginRight="16dp"
android:layout_marginTop="8dp"
+ android:layout_marginEnd="16dp"
+ android:layout_marginRight="16dp"
+ android:layout_marginBottom="12dp"
+ android:paddingStart="4dp"
android:paddingLeft="4dp"
android:text="@string/osm_live_hide_user_name"
- android:textColor="?android:attr/textColorPrimary"
- android:layout_marginEnd="16dp"
- android:paddingStart="4dp"
- android:layout_marginStart="72dp" />
+ android:textColor="?android:attr/textColorPrimary" />
@@ -303,35 +302,35 @@
android:id="@+id/editModeBottomView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_marginBottom="16dp"
android:layout_marginTop="16dp"
+ android:layout_marginBottom="16dp"
android:visibility="visible">
+ android:textColor="@color/color_white" />
-
+
+ android:layout_height="16dp" />
diff --git a/OsmAnd/res/layout/two_line_with_images_list_item.xml b/OsmAnd/res/layout/two_line_with_images_list_item.xml
index 66b2777765..e2ae827e71 100644
--- a/OsmAnd/res/layout/two_line_with_images_list_item.xml
+++ b/OsmAnd/res/layout/two_line_with_images_list_item.xml
@@ -24,7 +24,7 @@
android:layout_gravity="center_vertical"
android:layout_marginRight="@dimen/favorites_icon_right_margin"
tools:src="@drawable/ic_map"
- android:layout_marginEnd="@dimen/favorites_icon_right_margin" />
+ android:layout_marginEnd="@dimen/favorites_icon_right_margin" />
+ android:layout_marginStart="@dimen/dashFavIconMargin" />
+ android:textColor="@color/text_color_tab_active_light"
+ android:visibility="visible" />
From 169a9e6b95b8022e47e7e32df3c184126d84e7d5 Mon Sep 17 00:00:00 2001
From: androiddevkotlin <64539346+androiddevkotlin@users.noreply.github.com>
Date: Wed, 3 Feb 2021 16:43:43 +0200
Subject: [PATCH 2/3] Fix title text
---
OsmAnd/res/layout/subscription_fragment.xml | 64 +++++++++++++++------
1 file changed, 46 insertions(+), 18 deletions(-)
diff --git a/OsmAnd/res/layout/subscription_fragment.xml b/OsmAnd/res/layout/subscription_fragment.xml
index 2ab9967918..b529d4ec87 100644
--- a/OsmAnd/res/layout/subscription_fragment.xml
+++ b/OsmAnd/res/layout/subscription_fragment.xml
@@ -105,24 +105,51 @@
android:id="@+id/donationCheckbox"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_marginStart="16dp"
- android:layout_marginLeft="16dp"
- android:paddingStart="34dp"
- android:paddingLeft="34dp"
+ android:layout_marginTop="@dimen/context_menu_second_line_top_margin"
+ android:layout_marginStart="@dimen/list_content_padding"
+ android:layout_marginLeft="@dimen/list_content_padding"
+ android:paddingStart="@dimen/local_size_height"
+ android:paddingLeft="@dimen/local_size_height"
+ android:paddingEnd="@dimen/local_size_height"
+ android:paddingRight="@dimen/local_size_height"
android:text="@string/donation_to_osm" />
-
+ android:minHeight="56dp"
+ android:orientation="vertical">
+
+
+
+
+
+
@@ -169,8 +196,10 @@
@@ -178,7 +207,6 @@
android:id="@+id/selectCountryEdit"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
- android:editable="false"
android:paddingStart="2dp"
android:paddingLeft="2dp"
android:paddingEnd="0dp"
From 18421f4b99a174155365b29cd31a6f23d55d2fdf Mon Sep 17 00:00:00 2001
From: androiddevkotlin <64539346+androiddevkotlin@users.noreply.github.com>
Date: Wed, 3 Feb 2021 17:13:12 +0200
Subject: [PATCH 3/3] Min height, default visibility
---
OsmAnd/res/layout/subscription_fragment.xml | 1 +
OsmAnd/res/layout/two_line_with_images_list_item.xml | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/OsmAnd/res/layout/subscription_fragment.xml b/OsmAnd/res/layout/subscription_fragment.xml
index b529d4ec87..ad308e6be1 100644
--- a/OsmAnd/res/layout/subscription_fragment.xml
+++ b/OsmAnd/res/layout/subscription_fragment.xml
@@ -8,6 +8,7 @@
diff --git a/OsmAnd/res/layout/two_line_with_images_list_item.xml b/OsmAnd/res/layout/two_line_with_images_list_item.xml
index e2ae827e71..4ef2c29631 100644
--- a/OsmAnd/res/layout/two_line_with_images_list_item.xml
+++ b/OsmAnd/res/layout/two_line_with_images_list_item.xml
@@ -100,7 +100,7 @@
android:paddingRight="@dimen/context_menu_progress_padding_left"
android:text="@string/buy"
android:textColor="@color/text_color_tab_active_light"
- android:visibility="visible" />
+ android:visibility="gone" />