diff options
author | Yorke Lee <yorkelee@google.com> | 2014-10-14 16:09:14 -0700 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2014-10-14 16:09:14 -0700 |
commit | 2832533fad15779711f44e0758667cd2994c61d1 (patch) | |
tree | b269a3e6a7172bcf780b2986606e6d046edd4a08 | |
parent | 847d8e2d0d854c019e703809e9318371de3f46cf (diff) |
Increase touch target for dismiss icon
Bug: 17754808
Change-Id: I7848edbcc7f6bb3dbdc93d13fe4b8e6cfd048451
-rw-r--r-- | res/layout/call_log_list_item_extra.xml | 1 | ||||
-rw-r--r-- | res/values/dimens.xml | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/res/layout/call_log_list_item_extra.xml b/res/layout/call_log_list_item_extra.xml index 433597912..87b932bc6 100644 --- a/res/layout/call_log_list_item_extra.xml +++ b/res/layout/call_log_list_item_extra.xml @@ -53,6 +53,7 @@ <ImageView android:id="@+id/dismiss_button" android:layout_width="wrap_content" android:layout_height="wrap_content" + android:padding="@dimen/icon_padding" android:layout_gravity="center_vertical" android:layout_marginEnd="@dimen/call_log_icon_margin" android:src="@drawable/ic_close_dk" diff --git a/res/values/dimens.xml b/res/values/dimens.xml index 383a8faa6..7096148a1 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -131,6 +131,10 @@ <dimen name="call_log_day_group_padding_top">15dp</dimen> <dimen name="call_log_day_group_padding_bottom">9dp</dimen> + <!-- Padding for icons to increase their touch target. Icons are typically 24 dps in size + so this extra padding makes the entire touch target 40dp --> + <dimen name="icon_padding">8dp</dimen> + <!-- Length of dialpad's shadows in dialer. --> <dimen name="shadow_length">10dp</dimen> |