summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorClark Scheff <clark@cyngn.com>2014-07-23 10:21:01 -0700
committerClark Scheff <clark@cyngn.com>2014-07-23 22:16:59 +0000
commite73456465d7a841e2d043bc0ec688fad6db24d3d (patch)
treeea166b77d3b1699c557570efdcc8b0c622ba752f /res
parent049008ad5cd343129444a71814fbe3fdc3bce628 (diff)
downloadpackages_apps_ThemeChooser-e73456465d7a841e2d043bc0ec688fad6db24d3d.zip
packages_apps_ThemeChooser-e73456465d7a841e2d043bc0ec688fad6db24d3d.tar.gz
packages_apps_ThemeChooser-e73456465d7a841e2d043bc0ec688fad6db24d3d.tar.bz2
Allow indicating spacing for page indicator.
Change-Id: I9e7ee402b0bc5556d4c853aa521f274659fbc39c
Diffstat (limited to 'res')
-rw-r--r--res/layout/component_selector.xml5
-rw-r--r--res/values/vpi__attrs.xml2
-rw-r--r--res/values/vpi__defaults.xml1
3 files changed, 7 insertions, 1 deletions
diff --git a/res/layout/component_selector.xml b/res/layout/component_selector.xml
index fadf2ee..a33eeb0 100644
--- a/res/layout/component_selector.xml
+++ b/res/layout/component_selector.xml
@@ -27,7 +27,10 @@
android:id="@+id/page_indicator"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_marginTop="5dp"
+ android:paddingTop="8dp"
+ themes:radius="4dp"
+ themes:spacing="16dp"
+ themes:pageColor="@android:color/transparent"
themes:fillColor="@android:color/white"/>
</FrameLayout>
diff --git a/res/values/vpi__attrs.xml b/res/values/vpi__attrs.xml
index dbe72a2..e197d07 100644
--- a/res/values/vpi__attrs.xml
+++ b/res/values/vpi__attrs.xml
@@ -41,6 +41,8 @@
<attr name="android:orientation"/>
<!-- Radius of the circles. This is also the spacing between circles. -->
<attr name="radius" format="dimension" />
+ <!-- Spacing from center to center for each indicator -->
+ <attr name="spacing" format="dimension" />
<!-- Whether or not the selected indicator snaps to the circles. -->
<attr name="snap" format="boolean" />
<!-- Color of the open circles. -->
diff --git a/res/values/vpi__defaults.xml b/res/values/vpi__defaults.xml
index b6c10dd..f1da62c 100644
--- a/res/values/vpi__defaults.xml
+++ b/res/values/vpi__defaults.xml
@@ -23,6 +23,7 @@
<color name="default_circle_indicator_page_color">#808184</color>
<integer name="default_circle_indicator_orientation">0</integer>
<dimen name="default_circle_indicator_radius">3dp</dimen>
+ <dimen name="default_circle_indicator_spacing">12dp</dimen>
<bool name="default_circle_indicator_snap">false</bool>
<color name="default_circle_indicator_stroke_color">#FFDDDDDD</color>
<dimen name="default_circle_indicator_stroke_width">1dp</dimen>