summaryrefslogtreecommitdiff
path: root/app/src/main/res/values/attrs.xml
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2019-08-03 19:00:05 +0200
committercyBerta <cyberta@riseup.net>2019-08-03 19:00:05 +0200
commit37f9cf65b3267f081c4b80c62240fc7754a30325 (patch)
tree7cbcb8ada5d9633761880a84603ec02945b341a6 /app/src/main/res/values/attrs.xml
parentfa04548dbdf1403e67682fc984bef9941e2f4c78 (diff)
create custom UI classes navigation drawer entries
Diffstat (limited to 'app/src/main/res/values/attrs.xml')
-rw-r--r--app/src/main/res/values/attrs.xml13
1 files changed, 13 insertions, 0 deletions
diff --git a/app/src/main/res/values/attrs.xml b/app/src/main/res/values/attrs.xml
index eb9626bc..66a351ae 100644
--- a/app/src/main/res/values/attrs.xml
+++ b/app/src/main/res/values/attrs.xml
@@ -1,6 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
+ <!--TODO: check that it's not needed and throw it out!-->
<declare-styleable name="foo">
<attr name="textColorError" format="color" />
</declare-styleable>
+
+ <attr name="text" format="string|reference"/>
+ <attr name="icon" format="reference"/>
+ <declare-styleable name="IconSwitchEntry">
+ <attr name="text"/>
+ <attr name="icon"/>
+ </declare-styleable>
+
+ <declare-styleable name="IconTextEntry">
+ <attr name="text"/>
+ <attr name="icon"/>
+ </declare-styleable>
</resources> \ No newline at end of file