I'm implementing my own <declare-styleable>
for a custom View (following the instructions here). I'd like to be able to specify an array of integers as one of the possible XML attributes. How do I:
- Specify the integer array as an XML attribute in
attrs.xml
? - Get it from the TypedArray after calling
obtainStyledAttributes()
in my custom View?