From 417fdec870b04fb235126c7cb6aa9b15da30d933 Mon Sep 17 00:00:00 2001 From: map-per Date: Wed, 23 Oct 2024 10:40:11 +0200 Subject: [PATCH] Better OSM explanation and new layout of login screen Signed-off-by: map-per --- .../organicmaps/editor/OsmLoginFragment.java | 2 - .../res/layout-land/fragment_osm_login.xml | 272 ++++++++---------- .../main/res/layout/fragment_osm_login.xml | 28 +- data/strings/strings.txt | 9 +- 4 files changed, 147 insertions(+), 164 deletions(-) diff --git a/android/app/src/main/java/app/organicmaps/editor/OsmLoginFragment.java b/android/app/src/main/java/app/organicmaps/editor/OsmLoginFragment.java index ec56c2c842..3a6f48b1fd 100644 --- a/android/app/src/main/java/app/organicmaps/editor/OsmLoginFragment.java +++ b/android/app/src/main/java/app/organicmaps/editor/OsmLoginFragment.java @@ -57,8 +57,6 @@ public class OsmLoginFragment extends BaseMwmToolbarFragment registerButton.setOnClickListener((v) -> Utils.openUrl(requireActivity(), Constants.Url.OSM_REGISTER)); mProgress = view.findViewById(R.id.osm_login_progress); final String dataVersion = DateUtils.getShortDateFormatter().format(Framework.getDataVersion()); - ((TextView) view.findViewById(R.id.osm_presentation)) - .setText(getString(R.string.osm_presentation, dataVersion)); if (BuildConfig.FLAVOR.equals("google")) { diff --git a/android/app/src/main/res/layout-land/fragment_osm_login.xml b/android/app/src/main/res/layout-land/fragment_osm_login.xml index f95650d7dc..b764563d97 100644 --- a/android/app/src/main/res/layout-land/fragment_osm_login.xml +++ b/android/app/src/main/res/layout-land/fragment_osm_login.xml @@ -24,161 +24,141 @@ android:clipChildren="false" android:clipToPadding="false" android:orientation="vertical" - android:padding="@dimen/margin_base" tools:ignore="ScrollViewSize"> - - - - - - - + - - - + + + + + + + - - - - - + android:layout_height="match_parent" + android:layout_weight="1" + android:orientation="vertical" + android:padding="@dimen/margin_base"> + + + + + + + +