From 88f533a84ff165c53f88d8965ee90de00b819ac5 Mon Sep 17 00:00:00 2001 From: PavelRatushny Date: Wed, 8 Nov 2017 14:22:28 +0200 Subject: [PATCH 01/15] Add empty states to markers --- .../layout-land/empty_state_favourites.xml | 28 ++++---- .../empty_state_markers_active.xml | 51 ++++++++++++++ .../empty_state_markers_groups.xml | 57 +++++++++++++++ .../empty_state_markers_history.xml | 51 ++++++++++++++ .../res/layout-land/empty_state_my_tracks.xml | 28 ++++---- OsmAnd/res/layout/empty_state_favourites.xml | 18 ++--- .../res/layout/empty_state_markers_active.xml | 39 +++++++++++ .../res/layout/empty_state_markers_groups.xml | 45 ++++++++++++ .../layout/empty_state_markers_history.xml | 39 +++++++++++ OsmAnd/res/layout/empty_state_my_tracks.xml | 18 ++--- .../layout/fragment_map_markers_active.xml | 17 +++++ .../layout/fragment_map_markers_groups.xml | 17 +++++ .../layout/fragment_map_markers_history.xml | 17 +++++ OsmAnd/res/values-land/sizes.xml | 4 +- OsmAnd/res/values-large-land/sizes.xml | 4 +- OsmAnd/res/values-large/sizes.xml | 22 +++--- OsmAnd/res/values/sizes.xml | 22 +++--- OsmAnd/res/values/strings.xml | 6 ++ .../mapmarkers/MapMarkersActiveFragment.java | 14 ++-- .../mapmarkers/MapMarkersDialogFragment.java | 1 + .../mapmarkers/MapMarkersGroupsFragment.java | 14 ++-- .../mapmarkers/MapMarkersHistoryFragment.java | 13 ++-- .../plus/widgets/EmptyStateRecyclerView.java | 70 +++++++++++++++++++ 23 files changed, 511 insertions(+), 84 deletions(-) create mode 100644 OsmAnd/res/layout-land/empty_state_markers_active.xml create mode 100644 OsmAnd/res/layout-land/empty_state_markers_groups.xml create mode 100644 OsmAnd/res/layout-land/empty_state_markers_history.xml create mode 100644 OsmAnd/res/layout/empty_state_markers_active.xml create mode 100644 OsmAnd/res/layout/empty_state_markers_groups.xml create mode 100644 OsmAnd/res/layout/empty_state_markers_history.xml create mode 100644 OsmAnd/res/layout/fragment_map_markers_active.xml create mode 100644 OsmAnd/res/layout/fragment_map_markers_groups.xml create mode 100644 OsmAnd/res/layout/fragment_map_markers_history.xml create mode 100644 OsmAnd/src/net/osmand/plus/widgets/EmptyStateRecyclerView.java diff --git a/OsmAnd/res/layout-land/empty_state_favourites.xml b/OsmAnd/res/layout-land/empty_state_favourites.xml index e3a77b04ab..4f28f53214 100644 --- a/OsmAnd/res/layout-land/empty_state_favourites.xml +++ b/OsmAnd/res/layout-land/empty_state_favourites.xml @@ -8,23 +8,23 @@ android:orientation="horizontal"> + tools:src="@drawable/ic_empty_state_favorites_night"/> @@ -32,11 +32,11 @@ + android:textSize="@dimen/empty_state_text_desc_size"/>