summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2014-10-15 00:13:35 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-10-15 00:13:35 +0000
commita2ea7d1dc1c97b0c286a6ffda7e3f03d6e1d6531 (patch)
treeade184d6979c6bdfc821b052338f8869cdaa3c6f /res
parent02419fc82a98b613396da980b264650b40989043 (diff)
parent2832533fad15779711f44e0758667cd2994c61d1 (diff)
Merge "Increase touch target for dismiss icon" into lmp-mr1-dev
Diffstat (limited to 'res')
-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>