summaryrefslogtreecommitdiff
path: root/library/main/res/values/attrs.xml
diff options
context:
space:
mode:
authorMaurice Lam <yukl@google.com>2017-03-03 12:22:53 -0800
committerMaurice Lam <yukl@google.com>2017-03-03 12:22:53 -0800
commit039a55c144bc968ca9e242640ea107df10ac2867 (patch)
tree9352021e30b254e9862ab1c1fcfca3705d62cc96 /library/main/res/values/attrs.xml
parent39056e5dc4b068745c2d9be69e5cd0c008bdc117 (diff)
downloadsetupwizard-039a55c144bc968ca9e242640ea107df10ac2867.tar.gz
Add scroll indicators to GLIF Pixel theme
Add the scroll indicators to clearly indicate the divide between status bar, content area, and footer, even though they all have the same background color. The scroll indicator will only be shown if there are content beyond the fold. Test: ./gradlew connectedAndroidTest test Bug: 35446596 Change-Id: I5419e4f443a2414f8c983241b8fc61cadb48ef68
Diffstat (limited to 'library/main/res/values/attrs.xml')
-rw-r--r--library/main/res/values/attrs.xml20
1 files changed, 20 insertions, 0 deletions
diff --git a/library/main/res/values/attrs.xml b/library/main/res/values/attrs.xml
index 0102dc1..42901c7 100644
--- a/library/main/res/values/attrs.xml
+++ b/library/main/res/values/attrs.xml
@@ -49,6 +49,26 @@
<attr name="suwNavBarTextColor" format="color" />
<attr name="suwNavBarTheme" format="reference" />
+ <!-- Values copied from frameworks/base/core/res/res/values/attrs.xml -->
+ <attr name="suwScrollIndicators">
+ <!-- No scroll indicators are displayed. -->
+ <flag name="none" value="0x00" />
+ <!-- Displays top scroll indicator when view can be scrolled up. -->
+ <flag name="top" value="0x01" />
+ <!-- Displays bottom scroll indicator when vew can be scrolled down. -->
+ <flag name="bottom" value="0x02" />
+ <!-- Displays left scroll indicator when vew can be scrolled left. -->
+ <flag name="left" value="0x04" />
+ <!-- Displays right scroll indicator when vew can be scrolled right. -->
+ <flag name="right" value="0x08" />
+ <!-- Displays right scroll indicator when vew can be scrolled in the
+ start direction. -->
+ <flag name="start" value="0x10" />
+ <!-- Displays right scroll indicator when vew can be scrolled in the
+ end direction. -->
+ <flag name="end" value="0x20" />
+ </attr>
+
<!-- Custom view attributes -->
<attr name="suwColorPrimary" format="color" />
<attr name="suwHeader" format="reference" />