diff options
author | Udam Saini <udam@google.com> | 2016-03-14 17:44:35 -0700 |
---|---|---|
committer | Udam Saini <udam@google.com> | 2016-03-16 12:23:46 -0700 |
commit | efd346d200a1649d94c5a1add1636de5b7d56eef (patch) | |
tree | 44445b878f5dce946f443a3cada6fd808d64b0dc /library/main/res/values | |
parent | 6cd984308b537924865bde77c2ee13d072cd9a48 (diff) | |
download | setupwizard-efd346d200a1649d94c5a1add1636de5b7d56eef.tar.gz |
[SetupWizard] Adds a new divider style for showing divider.
This style is used to determine if the divider item decoration should
check both the item view holder below and above where the divider would
draw itself. If set to true, both need to be true. By default, this is
set to either, so that a divider is drawn if either the item below or
above the divider allows a divider to be set.
bug:27619572
Change-Id: Ic0494542b3b62bf19061fb9feda52baac90f3972
Diffstat (limited to 'library/main/res/values')
-rw-r--r-- | library/main/res/values/attrs.xml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/library/main/res/values/attrs.xml b/library/main/res/values/attrs.xml index cd19ff2..fb559da 100644 --- a/library/main/res/values/attrs.xml +++ b/library/main/res/values/attrs.xml @@ -22,6 +22,10 @@ <attr name="suwMarginSides" format="dimension|reference" /> <attr name="suwCardBackground" format="color|reference" /> + <attr name="suwDividerCondition"> + <enum name="either" value="0" /> + <enum name="both" value="1" /> + </attr> <attr name="suwListItemIconColor" format="color" /> <attr name="suwNavBarBackgroundColor" format="color" /> <attr name="suwNavBarButtonBackground" format="color|reference" /> @@ -98,4 +102,10 @@ <attr name="android:visible" /> </declare-styleable> + <declare-styleable name="SuwDividerItemDecoration"> + <attr name="android:listDivider" /> + <attr name="android:dividerHeight" /> + <attr name="suwDividerCondition" /> + </declare-styleable> + </resources> |