Android Spinner: Custom Adapter Display
I am using a SimpleCursorAdapter on my spinner because I want to create a custom dropDownList that contains multiple rows and populate it from my database. I have accomplished this
Solution 1:
I think what you are asking is the getDropDownView()
method of BaseAdapter class.
In your newView method do what you've done and provide a layout for single row displays.
Then implement newDropDownView to inflate another layout that provides for multiple lines. The drop down views are used to create rows in the popup menu that is provided when a user selects the dropdown.
Post a Comment for "Android Spinner: Custom Adapter Display"