summaryrefslogtreecommitdiffstats
path: root/res/values
diff options
context:
space:
mode:
authorcretin45 <cretin45@gmail.com>2015-10-27 12:44:11 -0700
committercretin45 <cretin45@gmail.com>2015-10-27 12:44:11 -0700
commitb64d5e7676a1f31f200ae9b5134b5ccd4aab38d4 (patch)
treeb0d51283539b9875c57796516e1ac07f57eb2d3b /res/values
parent41801b0ca2a8d580d57bb1d7072622140b286b1d (diff)
downloadpackages_apps_SetupWizard-b64d5e7676a1f31f200ae9b5134b5ccd4aab38d4.zip
packages_apps_SetupWizard-b64d5e7676a1f31f200ae9b5134b5ccd4aab38d4.tar.gz
packages_apps_SetupWizard-b64d5e7676a1f31f200ae9b5134b5ccd4aab38d4.tar.bz2
SetupWizard: Fix locale picker styling
Change-Id: If336a8321b09513ec8b22f8138a47fb4d94e5913
Diffstat (limited to 'res/values')
-rw-r--r--res/values/attrs.xml15
-rw-r--r--res/values/ids.xml8
-rw-r--r--res/values/styles.xml21
3 files changed, 44 insertions, 0 deletions
diff --git a/res/values/attrs.xml b/res/values/attrs.xml
index bc2a109..4bf723f 100644
--- a/res/values/attrs.xml
+++ b/res/values/attrs.xml
@@ -17,4 +17,19 @@
<declare-styleable name="ScrimInsetsView">
<attr name="insetForeground" format="reference|color" />
</declare-styleable>
+
+ <attr name="localePickerStyle" format="reference" />
+
+ <declare-styleable name="LocalePicker">
+ <attr name="solidColor" format="color|reference" />
+ <attr name="selectionDivider" format="reference" />
+ <attr name="selectionDividerHeight" format="dimension" />
+ <attr name="selectionDividersDistance" format="dimension" />
+ <attr name="internalMinHeight" format="dimension" />
+ <attr name="internalMaxHeight" format="dimension" />
+ <attr name="internalMinWidth" format="dimension" />
+ <attr name="internalMaxWidth" format="dimension" />
+ <attr name="internalLayout" format="reference" />
+ <attr name="virtualButtonPressedDrawable" format="reference"/>
+ </declare-styleable>
</resources>
diff --git a/res/values/ids.xml b/res/values/ids.xml
new file mode 100644
index 0000000..2df6db8
--- /dev/null
+++ b/res/values/ids.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+
+ <item name="localepicker_input" type="id" />
+ <item name="lp__increment" type="id" />
+ <item name="lp__decrement" type="id" />
+
+</resources>
diff --git a/res/values/styles.xml b/res/values/styles.xml
index 595dded..f381000 100644
--- a/res/values/styles.xml
+++ b/res/values/styles.xml
@@ -26,6 +26,7 @@
<item name="android:textColorLink">@color/accent</item>
<item name="android:statusBarColor">@android:color/transparent</item>
<item name="android:windowAnimationStyle">@style/ActivityAnimations</item>
+ <item name="localePickerStyle">@style/LocaleWidget.Material.LocalePicker</item>
</style>
<style name="ActivityAnimations" parent="@android:style/Animation.Activity">
@@ -97,4 +98,24 @@
<item name="android:gravity">center_vertical|end</item>
<item name="android:drawableRight">@drawable/ic_chevron_right_dark</item>
</style>
+
+ <style name="LocaleWidget">
+ <item name="android:textAppearance">?android:attr/textAppearance</item>
+ </style>
+
+ <style name="LocaleWidget.LocalePicker">
+ <item name="android:orientation">vertical</item>
+ <item name="android:fadingEdge">vertical</item>
+ <item name="android:fadingEdgeLength">50dip</item>
+ </style>
+
+ <style name="LocaleWidget.Material.LocalePicker" parent="LocaleWidget.LocalePicker">
+ <item name="solidColor">@android:color/transparent</item>
+ <item name="selectionDivider">@drawable/divider</item>
+ <item name="selectionDividerHeight">1dip</item>
+ <item name="internalLayout">@layout/locale_picker</item>
+ <item name="internalMinWidth">64dip</item>
+ <item name="internalMaxHeight">180dip</item>
+ <item name="virtualButtonPressedDrawable">@null</item>
+ </style>
</resources>