From 51789e7254fde5685c1a833172283d0dd74d7b33 Mon Sep 17 00:00:00 2001 From: linyuh Date: Wed, 16 May 2018 10:09:53 -0700 Subject: Improve ContactPhotoView Bug: 70989658 Test: NewCallLogIntegrationTest + Manual PiperOrigin-RevId: 196845473 Change-Id: Ic0cbcf668ea1921c88fb6b080308884fa1113e61 --- .../calllog/ui/res/layout/new_call_log_entry.xml | 6 ++-- .../res/layout/contact_layout.xml | 7 ++--- .../speeddial/res/layout/suggestion_row_layout.xml | 8 ++--- .../android/dialer/widget/ContactPhotoView.java | 16 ++++++++++ .../widget/res/layout/contact_photo_view.xml | 35 +++++++++++++++++----- 5 files changed, 53 insertions(+), 19 deletions(-) (limited to 'java/com/android/dialer') diff --git a/java/com/android/dialer/calllog/ui/res/layout/new_call_log_entry.xml b/java/com/android/dialer/calllog/ui/res/layout/new_call_log_entry.xml index ad6589990..7bd7f4f78 100644 --- a/java/com/android/dialer/calllog/ui/res/layout/new_call_log_entry.xml +++ b/java/com/android/dialer/calllog/ui/res/layout/new_call_log_entry.xml @@ -26,14 +26,14 @@ android:id="@+id/contact_photo_view" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginStart="10dp" - android:layout_marginEnd="10dp" + android:layout_marginStart="8dp" + android:layout_marginEnd="8dp" android:layout_centerVertical="true"/> diff --git a/java/com/android/dialer/historyitemactions/res/layout/contact_layout.xml b/java/com/android/dialer/historyitemactions/res/layout/contact_layout.xml index 0790cf470..89cb91435 100644 --- a/java/com/android/dialer/historyitemactions/res/layout/contact_layout.xml +++ b/java/com/android/dialer/historyitemactions/res/layout/contact_layout.xml @@ -20,8 +20,8 @@ android:layout_height="match_parent" android:paddingTop="12dp" android:paddingBottom="12dp" - android:paddingStart="10dp" - android:paddingEnd="10dp" + android:paddingStart="8dp" + android:paddingEnd="8dp" android:gravity="center_vertical" android:orientation="horizontal" android:background="#FFFFFF"> @@ -30,8 +30,7 @@ android:id="@+id/contact_photo_view" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginEnd="10dp" - android:minHeight="@dimen/contact_actions_image_size"/> + android:layout_marginEnd="8dp"/> + android:layout_marginStart="12dp"/> + android:layout_marginStart="4dp"> + + android:layout_gravity="bottom|end" + android:layout_marginEnd="2dp" + android:layout_marginBottom="2dp" + android:focusable="false"> + android:src="@drawable/contact_photo_badge_background" + android:focusable="false" + tools:ignore="ContentDescription"/> + android:src="@drawable/quantum_ic_videocam_vd_white_24" + android:focusable="false" + tools:ignore="ContentDescription"/> + android:src="@drawable/quantum_ic_rtt_vd_theme_24" + android:focusable="false" + tools:ignore="ContentDescription"/> \ No newline at end of file -- cgit v1.2.3