I have a spinner in my Android app, that allows users to select countries. The spinner shows the ISO2 code of the selected country when folded. Here an example:
![Spinner - different item text in pop-up/list view [duplicate] Spinner - different item text in pop-up/list view [duplicate]](https://i.stack.imgur.com/NCQNh.png)
Once the user opens the selection pop-up list, I want to display a more extensive text for each item. So instead of displaying just "AT", the item should read "AT - Austria" as shown in the following screen-shot.
![Spinner - different item text in pop-up/list view [duplicate] Spinner - different item text in pop-up/list view [duplicate]](https://i.stack.imgur.com/qTelg.png)
Any ideas how I could achieve this?
SpinnerAdapter has a getDropDownView method that can return a different view for the expanded state.
加载中,请稍侯......
精彩评论