android listview refresh
hello every one
i want to refres开发者_Python百科h my listview after adding or removing any data.. the adapter is from the SDcard how can i do this?thanks in advance
call this code after your data are change..
adapter.notifyDataSetChanged();
Use notifyDataSetChanged() of ArrayAdapter. See the following code:
((EfficientAdapter)listView1.getAdapter()).notifyDataSetChanged();
Hope this will help you.
精彩评论