I've got basic android spinner and I would like to have, after clicking it, the list with items with one of them highlighted, the one, that was originally selected.
Like it's done here: http://www.warriorpoint.com/blog/wp-content/uploads/2009/05/05spinner-thumb.png
But with my own layout of the items and not with the radio box, but with my own background instead.
How can I achieve this? Is there anything of use in the selector, or do I have to do it programatically?
Any help is appreciated.
This should help.
To answer my question, you need to have something like this:
So that we can control creating of the dropdown list like this. If you need different selectors, you can do it easily in the XML file.
Then, when you just simply create the adapters and bind them to the spinner with method setAdapter.
Below is an solution I tested and verified. You can use setSelection(N) to highlight the item you want.