From c4073ff4ce1a342daad01a99d3fce84c54bc4776 Mon Sep 17 00:00:00 2001 From: Tony Mak Date: Wed, 11 May 2016 18:44:00 +0100 Subject: Add badge icon for work contact in search result BUG=26021888 BUG=28016344 (cherry picked from commit 6e00763823cd1b27ff88d25d0eb11f8addc3b2e6) Change-Id: If0e2f7b1c58cd064ebfdae8a9b735b391c5009fc --- res/drawable-hdpi/ic_work_profile.png | Bin 0 -> 158 bytes res/drawable-mdpi/ic_work_profile.png | Bin 0 -> 160 bytes res/drawable-xhdpi/ic_work_profile.png | Bin 0 -> 223 bytes res/drawable-xxhdpi/ic_work_profile.png | Bin 0 -> 214 bytes res/drawable-xxxhdpi/ic_work_profile.png | Bin 0 -> 343 bytes res/layout/contact_list_item_view.xml | 33 +++++++++++++++------ .../datamodel/data/ContactListItemData.java | 16 +++++++++- .../ui/contact/ContactDropdownLayouter.java | 4 ++- .../messaging/ui/contact/ContactListItemView.java | 13 ++++++-- 9 files changed, 52 insertions(+), 14 deletions(-) create mode 100644 res/drawable-hdpi/ic_work_profile.png create mode 100644 res/drawable-mdpi/ic_work_profile.png create mode 100644 res/drawable-xhdpi/ic_work_profile.png create mode 100644 res/drawable-xxhdpi/ic_work_profile.png create mode 100644 res/drawable-xxxhdpi/ic_work_profile.png diff --git a/res/drawable-hdpi/ic_work_profile.png b/res/drawable-hdpi/ic_work_profile.png new file mode 100644 index 0000000..5c2e457 Binary files /dev/null and b/res/drawable-hdpi/ic_work_profile.png differ diff --git a/res/drawable-mdpi/ic_work_profile.png b/res/drawable-mdpi/ic_work_profile.png new file mode 100644 index 0000000..b7ffd2b Binary files /dev/null and b/res/drawable-mdpi/ic_work_profile.png differ diff --git a/res/drawable-xhdpi/ic_work_profile.png b/res/drawable-xhdpi/ic_work_profile.png new file mode 100644 index 0000000..b47b485 Binary files /dev/null and b/res/drawable-xhdpi/ic_work_profile.png differ diff --git a/res/drawable-xxhdpi/ic_work_profile.png b/res/drawable-xxhdpi/ic_work_profile.png new file mode 100644 index 0000000..de257e7 Binary files /dev/null and b/res/drawable-xxhdpi/ic_work_profile.png differ diff --git a/res/drawable-xxxhdpi/ic_work_profile.png b/res/drawable-xxxhdpi/ic_work_profile.png new file mode 100644 index 0000000..72292bd Binary files /dev/null and b/res/drawable-xxxhdpi/ic_work_profile.png differ diff --git a/res/layout/contact_list_item_view.xml b/res/layout/contact_list_item_view.xml index 3015ae3..71a7370 100644 --- a/res/layout/contact_list_item_view.xml +++ b/res/layout/contact_list_item_view.xml @@ -63,15 +63,30 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="center_vertical" > - + + + + + +