From 6cdade6525329dcdce9e16346046f5c85f648fe3 Mon Sep 17 00:00:00 2001 From: Dmitry Donskoy Date: Thu, 26 Jul 2018 20:38:49 +0300 Subject: [PATCH] [android] Opt PlaceholderView --- android/res/layout/fragment_bookmark_list.xml | 1 + .../fragment_catalog_bookmark_categories.xml | 20 +++++------ android/res/layout/fragment_downloader.xml | 1 + android/res/layout/fragment_search_base.xml | 1 + .../maps/widget/PlaceholderView.java | 34 +++++++++++++++---- .../src/com/mapswithme/util/MathUtils.java | 9 +++++ 6 files changed, 49 insertions(+), 17 deletions(-) diff --git a/android/res/layout/fragment_bookmark_list.xml b/android/res/layout/fragment_bookmark_list.xml index 69245fba74..7286e670ee 100644 --- a/android/res/layout/fragment_bookmark_list.xml +++ b/android/res/layout/fragment_bookmark_list.xml @@ -17,6 +17,7 @@ mapsme:layout_constraintRight_toRightOf="parent" android:layout_width="match_parent" android:layout_height="match_parent" + android:gravity="center_horizontal" android:paddingLeft="@dimen/margin_double_and_half" android:paddingRight="@dimen/margin_double_and_half" android:paddingTop="@dimen/placeholder_margin_top" diff --git a/android/res/layout/fragment_catalog_bookmark_categories.xml b/android/res/layout/fragment_catalog_bookmark_categories.xml index 150dee0d5d..8e5193dd8c 100644 --- a/android/res/layout/fragment_catalog_bookmark_categories.xml +++ b/android/res/layout/fragment_catalog_bookmark_categories.xml @@ -74,18 +74,18 @@ android:paddingLeft="@dimen/margin_double_and_half" android:paddingRight="@dimen/margin_double_and_half" android:paddingTop="@dimen/placeholder_margin_top" + android:paddingBottom="@dimen/placeholder_margin_top" mapsme:imgSrcDefault="@drawable/img_empty_bookmarks" mapsme:titleDefault="@string/cached_bookmarks_placeholder_title" - mapsme:subTitleDefault="@string/cached_bookmarks_placeholder_subtitle"/> -