Want to update getView method when using GridView

I am using the baseadapter class for my calendar, in which it populates the calendar calendar with icons that match the data in the database. However, I want the code in getView to update whenever the user clicks on the calender, so the new icon is displayed immediately. How can I do this without creating a new instance of the baseAdapter class?

Here is my baseAdapter class:

+3


source to share


1 answer


You must call the adapter.notifyDataSetChanged method to update the ListView and gridView. It will update all visible items. And you have to return a new view in the getView () method, which depends on your desire.



+3


source







All Articles