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

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -