How Can I Refresh The List After Changes?
I use my ArrayAdapter expanded getView method. I change CheckBox but the ListView does not refresh my source @Override public View getView(int position, View convertView, ViewG
Solution 1:
adapter.notifyDataSetChanged(); // to notify the adapter that your data has been updated
Note: If you get any errors with the above line, you could try the following code (where mListView is the name of my ListView object)
((BaseAdapter) mListView.getAdapter()).notifyDataSetChanged();
Another way would be to invalidate the List so that it is redrawn form the updated data set once again.
mListView=(ListView) findViewById(R.id.MyListView);
mListView.invalidate();
Post a Comment for "How Can I Refresh The List After Changes?"