From 909073ecd295b7e31965ea9e614673b66e97dbbf Mon Sep 17 00:00:00 2001 From: uabdullah Date: Fri, 9 Mar 2018 15:27:36 -0800 Subject: Implement redlines for NUI VM Tab Makes the redlines similar to what we have for the call log nui. The values are structured and copied as much as possible from /calllog/ui/res/layout/new_call_log_*.xml Things to note for: -Today/Older header the same as call log -More items all the way to the right -Padding in voicemail icon gone -Removed padding between each recycler view item Bug: 69963448 Test: N/A PiperOrigin-RevId: 188547442 Change-Id: I515d75e392591243510634c3fabe444a7ba10d7f --- .../res/layout/new_voicemail_call_log_fragment.xml | 6 ++-- .../listui/res/layout/new_voicemail_entry.xml | 35 +++++++++++----------- .../res/layout/new_voicemail_entry_header.xml | 10 ++++--- .../dialer/voicemail/listui/res/values/dimens.xml | 13 -------- 4 files changed, 25 insertions(+), 39 deletions(-) (limited to 'java/com/android/dialer/voicemail') diff --git a/java/com/android/dialer/voicemail/listui/res/layout/new_voicemail_call_log_fragment.xml b/java/com/android/dialer/voicemail/listui/res/layout/new_voicemail_call_log_fragment.xml index fd9e0f2d2..7bada6abe 100644 --- a/java/com/android/dialer/voicemail/listui/res/layout/new_voicemail_call_log_fragment.xml +++ b/java/com/android/dialer/voicemail/listui/res/layout/new_voicemail_call_log_fragment.xml @@ -26,11 +26,9 @@ android:id="@+id/new_voicemail_call_log_recycler_view" android:layout_width="match_parent" android:layout_height="match_parent" - android:paddingBottom="@dimen/floating_action_button_list_bottom_padding" android:background="@color/background_dialer_light" - android:clipToPadding="false" - android:visibility="gone" - /> + android:paddingBottom="88dp" + android:clipToPadding="false"/> + android:minHeight="72dp"> @@ -46,8 +42,12 @@ style="@style/PrimaryText" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginStart="@dimen/call_log_entry_photo_text_margin" - android:layout_gravity="center_vertical"/> + android:layout_weight="1" + android:layout_marginEnd="6dp" + android:layout_marginTop="14dp" + android:ellipsize="end" + android:lineSpacingMultiplier="1.5" + android:singleLine="true"/> + android:ellipsize="end" + android:lineSpacingMultiplier="1.4" + android:singleLine="true"/> @@ -78,7 +79,6 @@ style="@style/PrimaryText" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginStart="@dimen/call_log_entry_photo_text_margin" android:layout_gravity="center_vertical" android:textSize="@dimen/voicemail_transcription_text_size" android:visibility="gone"/> @@ -88,7 +88,6 @@ style="@style/SecondaryText" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginStart="@dimen/call_log_entry_photo_text_margin" android:layout_gravity="center_vertical" android:text="@string/voicemail_transcription_branding_text" android:visibility="gone"/> diff --git a/java/com/android/dialer/voicemail/listui/res/layout/new_voicemail_entry_header.xml b/java/com/android/dialer/voicemail/listui/res/layout/new_voicemail_entry_header.xml index 84fcc377e..7e4fe62cf 100644 --- a/java/com/android/dialer/voicemail/listui/res/layout/new_voicemail_entry_header.xml +++ b/java/com/android/dialer/voicemail/listui/res/layout/new_voicemail_entry_header.xml @@ -16,14 +16,16 @@ --> + android:layout_marginStart="16dp" + android:layout_marginTop="8dp" + android:layout_centerVertical="true" + android:layout_gravity="center_vertical"/> diff --git a/java/com/android/dialer/voicemail/listui/res/values/dimens.xml b/java/com/android/dialer/voicemail/listui/res/values/dimens.xml index e6fcb74f9..1fa308af8 100644 --- a/java/com/android/dialer/voicemail/listui/res/values/dimens.xml +++ b/java/com/android/dialer/voicemail/listui/res/values/dimens.xml @@ -17,19 +17,8 @@ - 6dp - 16dp - 12dp - 48dp - 4dp - 8dp 48dp - 14sp - - 12dp - 16dp - 14sp @@ -39,8 +28,6 @@ 56dp 0dp - 16dp - 280dp -- cgit v1.2.3