diff options
author | Tony Mak <tonymak@google.com> | 2016-05-11 18:44:00 +0100 |
---|---|---|
committer | Victor Chang <vichang@google.com> | 2016-05-16 16:35:06 +0100 |
commit | c4073ff4ce1a342daad01a99d3fce84c54bc4776 (patch) | |
tree | 58abba437855d6abd25a2317e902d74fed68479a /res | |
parent | e2ccf8bff59da2b54fb037557ad93fc4c317c506 (diff) | |
download | android_packages_apps_Messaging-c4073ff4ce1a342daad01a99d3fce84c54bc4776.tar.gz android_packages_apps_Messaging-c4073ff4ce1a342daad01a99d3fce84c54bc4776.tar.bz2 android_packages_apps_Messaging-c4073ff4ce1a342daad01a99d3fce84c54bc4776.zip |
Add badge icon for work contact in search result
BUG=26021888
BUG=28016344
(cherry picked from commit 6e00763823cd1b27ff88d25d0eb11f8addc3b2e6)
Change-Id: If0e2f7b1c58cd064ebfdae8a9b735b391c5009fc
Diffstat (limited to 'res')
-rw-r--r-- | res/drawable-hdpi/ic_work_profile.png | bin | 0 -> 158 bytes | |||
-rw-r--r-- | res/drawable-mdpi/ic_work_profile.png | bin | 0 -> 160 bytes | |||
-rw-r--r-- | res/drawable-xhdpi/ic_work_profile.png | bin | 0 -> 223 bytes | |||
-rw-r--r-- | res/drawable-xxhdpi/ic_work_profile.png | bin | 0 -> 214 bytes | |||
-rw-r--r-- | res/drawable-xxxhdpi/ic_work_profile.png | bin | 0 -> 343 bytes | |||
-rw-r--r-- | res/layout/contact_list_item_view.xml | 33 |
6 files changed, 24 insertions, 9 deletions
diff --git a/res/drawable-hdpi/ic_work_profile.png b/res/drawable-hdpi/ic_work_profile.png Binary files differnew file mode 100644 index 0000000..5c2e457 --- /dev/null +++ b/res/drawable-hdpi/ic_work_profile.png diff --git a/res/drawable-mdpi/ic_work_profile.png b/res/drawable-mdpi/ic_work_profile.png Binary files differnew file mode 100644 index 0000000..b7ffd2b --- /dev/null +++ b/res/drawable-mdpi/ic_work_profile.png diff --git a/res/drawable-xhdpi/ic_work_profile.png b/res/drawable-xhdpi/ic_work_profile.png Binary files differnew file mode 100644 index 0000000..b47b485 --- /dev/null +++ b/res/drawable-xhdpi/ic_work_profile.png diff --git a/res/drawable-xxhdpi/ic_work_profile.png b/res/drawable-xxhdpi/ic_work_profile.png Binary files differnew file mode 100644 index 0000000..de257e7 --- /dev/null +++ b/res/drawable-xxhdpi/ic_work_profile.png diff --git a/res/drawable-xxxhdpi/ic_work_profile.png b/res/drawable-xxxhdpi/ic_work_profile.png Binary files differnew file mode 100644 index 0000000..72292bd --- /dev/null +++ b/res/drawable-xxxhdpi/ic_work_profile.png 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" > - <TextView - android:id="@+id/contact_name" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:paddingBottom="4dp" - android:singleLine="true" - android:maxLines="1" - android:ellipsize="end" - style="@style/ContactListItem" /> + + <LinearLayout + android:orientation="horizontal" + android:layout_width="match_parent" + android:layout_height="wrap_content"> + <TextView + android:id="@+id/contact_name" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_weight="1" + android:paddingBottom="4dp" + android:singleLine="true" + android:maxLines="1" + android:ellipsize="end" + style="@style/ContactListItem" /> + + <ImageView android:id="@+id/work_profile_icon" + android:src="@drawable/ic_work_profile" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:scaleType="center" + android:layout_gravity="center_vertical" + android:visibility="gone" /> + </LinearLayout> <LinearLayout android:orientation="horizontal" |