summaryrefslogtreecommitdiffstats
path: root/res/values
diff options
context:
space:
mode:
authorBrian Attwell <brianattwell@google.com>2014-08-14 14:00:37 -0700
committerBrian Attwell <brianattwell@google.com>2014-08-14 14:08:34 -0700
commit7840c28b728f33df5a8d90b47787764c8f880160 (patch)
treecce2acf40a53806197df0907c8bbf6df4df25b6a /res/values
parentf848c49cac796f99549c8418f8d4e2469ac9f963 (diff)
downloadandroid_packages_apps_Contacts-7840c28b728f33df5a8d90b47787764c8f880160.tar.gz
android_packages_apps_Contacts-7840c28b728f33df5a8d90b47787764c8f880160.tar.bz2
android_packages_apps_Contacts-7840c28b728f33df5a8d90b47787764c8f880160.zip
Edit contact: work around incorrect gravity in RTL
This prevents the spinners from looking really terrible in RTL mode when View gravity is incorrectly set as a result of framework bug b/17011078. Bug: 16974409 Change-Id: I34c02f2660f04734fba00e87d1879c27d14d2d2e
Diffstat (limited to 'res/values')
-rw-r--r--res/values/dimens.xml7
1 files changed, 7 insertions, 0 deletions
diff --git a/res/values/dimens.xml b/res/values/dimens.xml
index 6439c1d31..43b31da80 100644
--- a/res/values/dimens.xml
+++ b/res/values/dimens.xml
@@ -47,6 +47,13 @@
<!-- Left padding of a field in the Editor -->
<dimen name="editor_field_left_padding">4dip</dimen>
+ <!-- End padding added to spinners in the editor. This separates the spinner text from the
+ spinner graphic when Button gravity is incorrectly set in RTL mode
+ (see framework bug b/17011078. In LTR mode this shouldn't have an observable affect.
+ We set paddingEnd instead of drawablePadding since the spinner graphic is not a normal
+ drawable. -->
+ <dimen name="editor_spinner_end_padding_workaround">24dip</dimen>
+
<!-- Width of the Type-Label in the Editor -->
<dimen name="editor_type_label_width">100dip</dimen>