Android Spinner not showing selected item
This is related to Android Spinner:
Spinner not showing the selected item when using online database is the problem i faced
but after a little try and searching the internet i figured out the solution.
The problem is arraylist is an empty one when the class is initiated and then on adding data from the
online database the arraylist is populated.
The mistake i did is not notifying the changes to adapter.
By notifying the adapter that data set changed my problem solved.
Spinner not showing the selected item when using online database is the problem i faced
but after a little try and searching the internet i figured out the solution.
The problem is arraylist is an empty one when the class is initiated and then on adding data from the
online database the arraylist is populated.
The mistake i did is not notifying the changes to adapter.
By notifying the adapter that data set changed my problem solved.
Comments
Post a Comment