搜尋此網誌

2014年11月3日 星期一

【Android】Refresh Listview ?

ref:http://stackoverflow.com/questions/2250770/how-to-refresh-android-listview




I want to refresh an Android ListView after adding/deleting dynamic data.
Can any one tell me how to achieve this?

 Method
  1. Call notifyDataSetChanged() on your Adapter object once you've modified the data in that adapter.  
  2. Also you can use this:
    myListView.invalidateViews();

沒有留言: