summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2013-01-07 14:31:20 -0800
committerYorke Lee <yorkelee@google.com>2013-01-07 15:56:55 -0800
commit9639effec08d6e8fd31370a2e9abd7dc1df5b3f8 (patch)
tree0392f4fd7234825e1249da58a91c4c39b20d8600 /res
parente197811b1a96d722f2c41db0c840e54c604fa3ed (diff)
Add a "No contacts" description to PhoneFavoriteFragment
Add an additional "No contacts" view to the sub-header view returned by PhoneFavoriteMergedAdapter. This is required because the empty view functionality provided by a simple list view does not work because PhoneFavoriteMergedAdapter is a combination of two adapters. This "No contacts" view provides the illusion of an empty view for the 2nd adapter that displays all contacts without phone numbers, even if the first adapter does contain contacts. Bug: 5522729 Change-Id: I7dcc4cd7b4b2b28fefea4be384de40318654e165
Diffstat (limited to 'res')
-rw-r--r--res/layout/account_filter_header_for_phone_favorite.xml11
1 files changed, 11 insertions, 0 deletions
diff --git a/res/layout/account_filter_header_for_phone_favorite.xml b/res/layout/account_filter_header_for_phone_favorite.xml
index 6f1d23da9..d7afaac2b 100644
--- a/res/layout/account_filter_header_for_phone_favorite.xml
+++ b/res/layout/account_filter_header_for_phone_favorite.xml
@@ -33,4 +33,15 @@
android:id="@+id/account_filter_header"
style="@style/ContactListSeparatorTextViewStyle"
android:paddingLeft="@dimen/contact_browser_list_item_text_indent" />
+ <TextView
+ android:id="@+id/contact_list_all_empty"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:textColor="?android:attr/textColorSecondary"
+ android:paddingLeft="8dip"
+ android:paddingTop="@dimen/contact_phone_list_empty_description_padding"
+ android:paddingBottom="@dimen/contact_phone_list_empty_description_padding"
+ android:textSize="@dimen/contact_phone_list_empty_description_size"
+ android:text="@string/listFoundAllContactsZero"
+ android:visibility="gone"/>
</LinearLayout>