From b46c93e33b459cd2482eca087b905e907ff911b6 Mon Sep 17 00:00:00 2001 From: Mark Renouf Date: Wed, 21 Sep 2016 15:00:28 -0400 Subject: [PATCH] Extract action icons for Wear adjusted for optical alignment Correct ImageButton padding to spec for both round and square Wear specific versions of icons are shifted for visual alignment BUG: 31558107 Change-Id: Iebcefb7b7b200701904b9bb378c514e0efd0961a --- .../ic_input_extract_action_done.xml | 19 +++++++++++++++ .../ic_input_extract_action_send.xml | 24 +++++++++++++++++++ .../input_method_extract_view.xml | 2 +- core/res/res/values-notround-watch/dimens.xml | 1 + core/res/res/values-round-watch/dimens.xml | 1 + 5 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 core/res/res/drawable-watch/ic_input_extract_action_done.xml create mode 100644 core/res/res/drawable-watch/ic_input_extract_action_send.xml diff --git a/core/res/res/drawable-watch/ic_input_extract_action_done.xml b/core/res/res/drawable-watch/ic_input_extract_action_done.xml new file mode 100644 index 0000000000000..a04b944f391fd --- /dev/null +++ b/core/res/res/drawable-watch/ic_input_extract_action_done.xml @@ -0,0 +1,19 @@ + + + + diff --git a/core/res/res/drawable-watch/ic_input_extract_action_send.xml b/core/res/res/drawable-watch/ic_input_extract_action_send.xml new file mode 100644 index 0000000000000..3689172f72aba --- /dev/null +++ b/core/res/res/drawable-watch/ic_input_extract_action_send.xml @@ -0,0 +1,24 @@ + + + + diff --git a/core/res/res/layout-watch/input_method_extract_view.xml b/core/res/res/layout-watch/input_method_extract_view.xml index 038b766c749bd..3478bb544934b 100644 --- a/core/res/res/layout-watch/input_method_extract_view.xml +++ b/core/res/res/layout-watch/input_method_extract_view.xml @@ -49,7 +49,7 @@ android:layout_width="@dimen/input_extract_action_button_width" android:layout_height="@dimen/input_extract_action_button_width" android:background="@drawable/input_extract_action_bg_material_dark" - android:padding="4dp" + android:padding="@dimen/input_extract_action_icon_padding" android:scaleType="centerInside" /> diff --git a/core/res/res/values-notround-watch/dimens.xml b/core/res/res/values-notround-watch/dimens.xml index f103aa91dcfe3..f0204d0f2d347 100644 --- a/core/res/res/values-notround-watch/dimens.xml +++ b/core/res/res/values-notround-watch/dimens.xml @@ -24,4 +24,5 @@ 0% 24dp 24dp + 3dp diff --git a/core/res/res/values-round-watch/dimens.xml b/core/res/res/values-round-watch/dimens.xml index a12f499299294..1d8c669ac55b4 100644 --- a/core/res/res/values-round-watch/dimens.xml +++ b/core/res/res/values-round-watch/dimens.xml @@ -24,4 +24,5 @@ 2.1% 32dp 32dp + 5dp