diff options
author | James Lemieux <jplemieux@google.com> | 2014-08-08 17:37:54 -0700 |
---|---|---|
committer | James Lemieux <jplemieux@google.com> | 2014-08-08 17:37:54 -0700 |
commit | 0101289456a0bb35ec6434d4c41aef502bda0724 (patch) | |
tree | d4f09c61c0d21ec418fb7a9fd1517804ebec4716 /res/layout | |
parent | 79314245229c5f87160da15690661ac93b019734 (diff) | |
download | android_packages_apps_UnifiedEmail-0101289456a0bb35ec6434d4c41aef502bda0724.tar.gz android_packages_apps_UnifiedEmail-0101289456a0bb35ec6434d4c41aef502bda0724.tar.bz2 android_packages_apps_UnifiedEmail-0101289456a0bb35ec6434d4c41aef502bda0724.zip |
Takes more than one click to Undo Archive/Delete
b/16817429
I have changed the spacing around the action text (UNDO) to be
padding rather than margins. This provides more tap target slop
for the action text.
Change-Id: I8c2e56ff84a5a29846573fb2928cafc32d7f5cd5
Diffstat (limited to 'res/layout')
-rw-r--r-- | res/layout/floating_actions.xml | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/res/layout/floating_actions.xml b/res/layout/floating_actions.xml index 19a0bf910..1ec5eb23c 100644 --- a/res/layout/floating_actions.xml +++ b/res/layout/floating_actions.xml @@ -32,8 +32,6 @@ android:layout_gravity="bottom" android:background="@color/snack_bar_background_color" android:clickable="true" - android:paddingTop="@dimen/snack_bar_margin_vertical" - android:paddingBottom="@dimen/snack_bar_margin_vertical" android:visibility="gone"> <!-- These children are visible when description and action text fit on one line --> @@ -50,6 +48,8 @@ android:layout_marginLeft="@dimen/snack_bar_margin_horizontal" android:layout_marginRight="@dimen/snack_bar_margin_horizontal" android:layout_weight="1" + android:paddingTop="@dimen/snack_bar_margin_vertical" + android:paddingBottom="@dimen/snack_bar_margin_vertical" android:textColor="@android:color/white" /> <TextView @@ -57,6 +57,8 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical" + android:paddingTop="@dimen/snack_bar_margin_vertical" + android:paddingBottom="@dimen/snack_bar_margin_vertical" android:textAllCaps="true" android:textColor="@color/snack_bar_action_text_color" style="@style/SnackBarActionTextStyle"/> @@ -74,6 +76,8 @@ android:layout_height="wrap_content" android:layout_marginLeft="@dimen/snack_bar_margin_horizontal" android:layout_marginRight="@dimen/snack_bar_margin_horizontal" + android:paddingTop="@dimen/snack_bar_margin_vertical" + android:paddingBottom="@dimen/snack_bar_margin_vertical" android:textColor="@android:color/white" /> <TextView @@ -83,6 +87,8 @@ android:layout_marginTop="8dp" android:layout_marginLeft="@dimen/snack_bar_margin_horizontal" android:layout_marginRight="@dimen/snack_bar_margin_horizontal" + android:paddingTop="@dimen/snack_bar_margin_vertical" + android:paddingBottom="@dimen/snack_bar_margin_vertical" android:textAllCaps="true" android:textColor="@color/snack_bar_action_text_color" style="@style/SnackBarActionTextStyle"/> |