summaryrefslogtreecommitdiff
path: root/library/main/res/values/attrs.xml
diff options
context:
space:
mode:
authorMaurice Lam <yukl@google.com>2015-10-05 19:06:12 -0700
committerMaurice Lam <yukl@google.com>2015-10-06 20:35:32 -0700
commit5bf291fde3dfd64f264d525534730514a279c8fc (patch)
tree9dd79e2e05eb4820590d8fc5f481b5e94dc51f91 /library/main/res/values/attrs.xml
parent48c0aa4ca75887986ba3139b7ef07ed5cc078610 (diff)
downloadsetupwizard-5bf291fde3dfd64f264d525534730514a279c8fc.tar.gz
[SuwLib] Implement Items framework
Items framework is a framework modeled after preferences, which uses XML to inflate a collection of items. Instead of using activity or fragment directly like preferences, a ListAdapter is created and you can use that with any existing ListViews. SetupWizardItemsLayout is a convenient wrapper around SetupWizardListLayout which will automatically inflates android:entries in its attributes to populate the list. Note: A recycler view adapter is under consideration Change-Id: I5eb8853c160cf86fa5b6f21a01dfa4b0030643f6
Diffstat (limited to 'library/main/res/values/attrs.xml')
-rw-r--r--library/main/res/values/attrs.xml13
1 files changed, 13 insertions, 0 deletions
diff --git a/library/main/res/values/attrs.xml b/library/main/res/values/attrs.xml
index 6d43280..62fa7e7 100644
--- a/library/main/res/values/attrs.xml
+++ b/library/main/res/values/attrs.xml
@@ -49,4 +49,17 @@
<attr name="suwContainer" format="reference" />
</declare-styleable>
+ <declare-styleable name="SuwSetupWizardItemsLayout">
+ <attr name="android:entries" />
+ </declare-styleable>
+
+ <declare-styleable name="SuwItem">
+ <attr name="android:enabled" />
+ <attr name="android:icon" />
+ <attr name="android:id" />
+ <attr name="android:title" />
+ <attr name="android:layout" />
+ <attr name="android:summary" />
+ </declare-styleable>
+
</resources>