summaryrefslogtreecommitdiffstats
path: root/res/values
diff options
context:
space:
mode:
authorAndrew Mast <andy@cyngn.com>2014-05-13 21:58:33 -0700
committerAndy Mast <andy@cyngn.com>2014-05-15 14:43:41 +0000
commit472bd3327394eb0db591c626e216712c0f9f58b0 (patch)
treed5685794f6172dae05c8716823822c67255517d6 /res/values
parentcf8f5e7f8c7195ae14827caa71e291d52d3e236e (diff)
downloadpackages_apps_ThemeChooser-472bd3327394eb0db591c626e216712c0f9f58b0.zip
packages_apps_ThemeChooser-472bd3327394eb0db591c626e216712c0f9f58b0.tar.gz
packages_apps_ThemeChooser-472bd3327394eb0db591c626e216712c0f9f58b0.tar.bz2
Add a page indicator to the theme preview screen
Leverages Jake Wharton's ViewPagerIndicator Change-Id: I17c5ff60a7a2d62fa8fcf652382dcfcd807d0397
Diffstat (limited to 'res/values')
-rw-r--r--res/values/vpi__attrs.xml53
-rw-r--r--res/values/vpi__defaults.xml29
2 files changed, 82 insertions, 0 deletions
diff --git a/res/values/vpi__attrs.xml b/res/values/vpi__attrs.xml
new file mode 100644
index 0000000..dbe72a2
--- /dev/null
+++ b/res/values/vpi__attrs.xml
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2012 Jake Wharton
+ Copyright (C) 2011 Patrik Ã…kerfeldt
+
+ NOTICE: This file has been modified from its original source.
+ ORIG. SOURCE: https://github.com/JakeWharton/Android-ViewPagerIndicator
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<resources>
+ <declare-styleable name="ViewPagerIndicator">
+ <!-- Style of the circle indicator. -->
+ <attr name="vpiCirclePageIndicatorStyle" format="reference"/>
+ </declare-styleable>
+
+ <attr name="centered" format="boolean" />
+ <attr name="selectedColor" format="color" />
+ <attr name="strokeWidth" format="dimension" />
+ <attr name="unselectedColor" format="color" />
+
+ <declare-styleable name="CirclePageIndicator">
+ <!-- Whether or not the indicators should be centered. -->
+ <attr name="centered" />
+ <!-- Color of the filled circle that represents the current page. -->
+ <attr name="fillColor" format="color" />
+ <!-- Color of the filled circles that represents pages. -->
+ <attr name="pageColor" format="color" />
+ <!-- Orientation of the indicator. -->
+ <attr name="android:orientation"/>
+ <!-- Radius of the circles. This is also the spacing between circles. -->
+ <attr name="radius" format="dimension" />
+ <!-- Whether or not the selected indicator snaps to the circles. -->
+ <attr name="snap" format="boolean" />
+ <!-- Color of the open circles. -->
+ <attr name="strokeColor" format="color" />
+ <!-- Width of the stroke used to draw the circles. -->
+ <attr name="strokeWidth" />
+ <!-- View background -->
+ <attr name="android:background"/>
+ </declare-styleable>
+</resources>
diff --git a/res/values/vpi__defaults.xml b/res/values/vpi__defaults.xml
new file mode 100644
index 0000000..b6c10dd
--- /dev/null
+++ b/res/values/vpi__defaults.xml
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2012 Jake Wharton
+
+ NOTICE: This file has been modified from its original source.
+ ORIG. SOURCE: https://github.com/JakeWharton/Android-ViewPagerIndicator
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<resources>
+ <bool name="default_circle_indicator_centered">true</bool>
+ <color name="default_circle_indicator_fill_color">#00b1e5</color>
+ <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>
+ <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>
+</resources>