From 0a4327e6bfeedc23ddefb4df9f6e8041ebc87b59 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Tue, 10 Jun 2014 15:09:46 -0700 Subject: Update empty list assets and text. - Add new assets for empty lists, delete old no favorites banner. - Adapt phone_no_favorites.xml into generic container shown when a list is empty. - Add helper to DialerUtils to configure empty list view with a provided image and message. - Configure empty list view in relevant fragments. - Some text styling/margin/padding to get things to spec. A minimum height is used on the message so that the icons and text will be laid out in a consistent manner. Bug: 15513399 Change-Id: I52337a4544065a991d3b8084d96b01516a458c42 --- res/layout/call_log_fragment.xml | 14 ++++---- res/layout/empty_list_view.xml | 56 ++++++++++++++++++++++++++++++ res/layout/phone_no_favorites.xml | 57 ------------------------------- res/layout/show_all_contacts_fragment.xml | 7 ++++ res/layout/speeddial_fragment.xml | 9 ++--- 5 files changed, 73 insertions(+), 70 deletions(-) create mode 100644 res/layout/empty_list_view.xml delete mode 100644 res/layout/phone_no_favorites.xml (limited to 'res/layout') diff --git a/res/layout/call_log_fragment.xml b/res/layout/call_log_fragment.xml index fb7ed2a16..bb50730e8 100644 --- a/res/layout/call_log_fragment.xml +++ b/res/layout/call_log_fragment.xml @@ -72,14 +72,14 @@ android:divider="@null" android:nestedScrollingEnabled="true" /> - + layout="@layout/empty_list_view" + android:visibility="gone"/> + + diff --git a/res/layout/empty_list_view.xml b/res/layout/empty_list_view.xml new file mode 100644 index 000000000..be4dbf5af --- /dev/null +++ b/res/layout/empty_list_view.xml @@ -0,0 +1,56 @@ + + + + + + + + + + + + + + + + diff --git a/res/layout/phone_no_favorites.xml b/res/layout/phone_no_favorites.xml deleted file mode 100644 index b95afd197..000000000 --- a/res/layout/phone_no_favorites.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - - - - - - - - diff --git a/res/layout/show_all_contacts_fragment.xml b/res/layout/show_all_contacts_fragment.xml index 91fb3228c..fe188bddd 100644 --- a/res/layout/show_all_contacts_fragment.xml +++ b/res/layout/show_all_contacts_fragment.xml @@ -46,4 +46,11 @@ android:nestedScrollingEnabled="true" /> + + diff --git a/res/layout/speeddial_fragment.xml b/res/layout/speeddial_fragment.xml index f025e6179..58a7b2410 100644 --- a/res/layout/speeddial_fragment.xml +++ b/res/layout/speeddial_fragment.xml @@ -45,13 +45,10 @@ + -- cgit v1.2.3