开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜