Is there a way to define custom elements that are configurable within resource files and possible to store in arrays?
Maybe there is a better way to do this so here is what I want to do:
I want to define elements which I can store within an array to display, i.e. in a customized list view /adapter.
I want to be able to define the order within an array in an xml file and define the id of the elements as well as some text and optionally a drawable. Than I want to display them within a list view. When I select one of these elements I want the ID defined for this element to be the one defined by me.
I would like something like this but I am unable to find a way to get there, any ideas?