From b2a0168c53ef96ac26a2abb8dcb2c34b49c9becc Mon Sep 17 00:00:00 2001 From: Tyler Gunn Date: Thu, 22 May 2014 16:36:14 -0700 Subject: Cleanup of call log entry horizontal padding and RTL support. Bug: 15165669 Change-Id: Iceba7fdfcecb79c3d1ef30505e27b5274da67111 --- res/layout/call_log_list_item.xml | 6 +++--- res/layout/call_log_list_item_actions.xml | 14 +++++++------- res/values/dimens.xml | 10 ++-------- 3 files changed, 12 insertions(+), 18 deletions(-) (limited to 'res') diff --git a/res/layout/call_log_list_item.xml b/res/layout/call_log_list_item.xml index bdf14774e..9899424c4 100644 --- a/res/layout/call_log_list_item.xml +++ b/res/layout/call_log_list_item.xml @@ -28,7 +28,7 @@ android:id="@+id/call_log_day_group_label" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginStart="@dimen/call_log_outer_margin" + android:layout_marginStart="@dimen/call_log_start_margin" android:layout_marginEnd="@dimen/call_log_outer_margin" android:textColor="?attr/call_log_secondary_text_color" android:textSize="@dimen/call_log_secondary_text_size" @@ -52,7 +52,7 @@ android:background="@drawable/call_log_background" android:layout_width="match_parent" android:layout_height="wrap_content" - android:paddingStart="@dimen/call_log_outer_margin" + android:paddingStart="@dimen/call_log_start_margin" android:paddingEnd="@dimen/call_log_outer_margin" android:paddingTop="@dimen/call_log_outer_margin" android:paddingBottom="@dimen/call_log_outer_margin" @@ -75,7 +75,7 @@ android:layout_weight="1" android:orientation="vertical" android:gravity="center_vertical" - android:layout_marginStart="@dimen/call_log_inner_margin" + android:layout_marginStart="@dimen/call_log_start_margin" > @@ -35,8 +35,8 @@ android:gravity="center" android:layout_width="wrap_content" android:layout_height="match_parent" - android:paddingLeft="@dimen/call_log_action_horizontal_padding" - android:paddingRight="@dimen/call_log_action_horizontal_padding" + android:paddingStart="@dimen/call_log_action_horizontal_padding" + android:paddingEnd="@dimen/call_log_action_horizontal_padding" android:text="@string/call_log_action_call_back" android:textColor="@color/call_log_action_text" android:textSize="@dimen/call_log_secondary_text_size" @@ -51,8 +51,8 @@ android:gravity="center" android:layout_width="wrap_content" android:layout_height="match_parent" - android:paddingLeft="@dimen/call_log_action_horizontal_padding" - android:paddingRight="@dimen/call_log_action_horizontal_padding" + android:paddingStart="@dimen/call_log_action_horizontal_padding" + android:paddingEnd="@dimen/call_log_action_horizontal_padding" android:text="@string/call_log_action_voicemail" android:textColor="@color/call_log_action_text" android:textSize="@dimen/call_log_secondary_text_size" @@ -67,8 +67,8 @@ android:gravity="center" android:layout_width="wrap_content" android:layout_height="match_parent" - android:paddingLeft="@dimen/call_log_action_horizontal_padding" - android:paddingRight="@dimen/call_log_action_horizontal_padding" + android:paddingStart="@dimen/call_log_action_horizontal_padding" + android:paddingEnd="@dimen/call_log_action_horizontal_padding" android:text="@string/call_log_action_details" android:textColor="?attr/call_log_secondary_text_color" android:textSize="@dimen/call_log_secondary_text_size" diff --git a/res/values/dimens.xml b/res/values/dimens.xml index f399e368e..d2ef1cb7c 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -31,18 +31,12 @@ 4dip 8dip 8dp + 16dp 24dip 56dip 40dip 24dip 2dip - - 17dp - - - 1dp 74dp @@ -123,7 +117,7 @@ to the right of the contact badge. Adjust when any of the following change: call_log_action_horizontal_padding call_log_list_contact_photo_size --> - 48dp + 64dp 16sp -- cgit v1.2.3