summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2014-10-14 16:09:14 -0700
committerYorke Lee <yorkelee@google.com>2014-10-14 16:09:14 -0700
commit2832533fad15779711f44e0758667cd2994c61d1 (patch)
treeb269a3e6a7172bcf780b2986606e6d046edd4a08
parent847d8e2d0d854c019e703809e9318371de3f46cf (diff)
Increase touch target for dismiss icon
Bug: 17754808 Change-Id: I7848edbcc7f6bb3dbdc93d13fe4b8e6cfd048451
-rw-r--r--res/layout/call_log_list_item_extra.xml1
-rw-r--r--res/values/dimens.xml4
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>