From 8e2e03613a6724e816a68956d6c6b1de337e93fd Mon Sep 17 00:00:00 2001 From: Dmitry Donskoy Date: Fri, 21 Jun 2019 16:19:38 +0300 Subject: [PATCH] [android] Added strings integration for discovery --- android/res/layout-land/onmap_downloader.xml | 2 +- .../layout/catalog_promo_placeholder_card.xml | 3 +- android/res/layout/onmap_downloader.xml | 1 + .../maps/discovery/DiscoveryFragment.java | 22 +++++++- .../com/mapswithme/maps/gallery/Holders.java | 52 ++++++++++++++----- .../impl/BaseItemSelectedListener.java | 13 +---- .../impl/LoggableItemSelectedListener.java | 16 ++++-- .../maps/widget/placepage/PlacePageView.java | 5 +- 8 files changed, 79 insertions(+), 35 deletions(-) diff --git a/android/res/layout-land/onmap_downloader.xml b/android/res/layout-land/onmap_downloader.xml index e01fbde978..4f09cc1895 100644 --- a/android/res/layout-land/onmap_downloader.xml +++ b/android/res/layout-land/onmap_downloader.xml @@ -149,7 +149,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="@dimen/margin_half" - android:text="@string/popup_mwm_download_guides_cta" + android:text="@string/popup_mwm_download_guides_title" android:gravity="center" android:textAppearance="?android:attr/textAppearanceLarge" tools:text="very very very loooooooooooooooooong text"/> diff --git a/android/res/layout/catalog_promo_placeholder_card.xml b/android/res/layout/catalog_promo_placeholder_card.xml index f6b19c7f5d..bcd968bec8 100644 --- a/android/res/layout/catalog_promo_placeholder_card.xml +++ b/android/res/layout/catalog_promo_placeholder_card.xml @@ -21,7 +21,7 @@ android:id="@+id/progress" android:layout_width="@dimen/margin_base_plus" android:layout_height="@dimen/margin_base_plus" - android:layout_marginTop="@dimen/margin_double_plus"/> + android:layout_marginTop="@dimen/margin_base_plus"/> diff --git a/android/res/layout/onmap_downloader.xml b/android/res/layout/onmap_downloader.xml index e1778efb3f..04da062a23 100644 --- a/android/res/layout/onmap_downloader.xml +++ b/android/res/layout/onmap_downloader.xml @@ -131,6 +131,7 @@ android:layout_height="wrap_content" android:layout_marginTop="@dimen/margin_half" android:gravity="center" + android:text="@string/popup_mwm_download_guides_title" android:textAppearance="?android:attr/textAppearanceLarge" tools:text="Some title"/>