How to define a typed array of custom XML objects in Android -
i know it's possible define typed array of drawables in android:
<array name="icons"> <item>@drawable/home</item> <item>@drawable/settings</item> <item>@drawable/logout</item> </array>
is possible have array of custom objects such styleable ones (this syntax doesn't work, fyi)?
<array name="custom_objects"> <item>@styleable/home</item> <item>@styleable/settings</item> <item>@styleable/logout</item> </array>
i don't think it's possible xml, although not sure. think should create array via code.
Comments
Post a Comment