参考:
http://www.runoob.com/w3cnote/android-tutorial-listview-update.html
关键在于在adapter中实现一个函数:当数据发生变化是,调用notifyDataSetChanged();
通知它数据发生了变化,需要重绘,或者是添加一行等等。
参考:
http://www.runoob.com/w3cnote/android-tutorial-listview-update.html
关键在于在adapter中实现一个函数:当数据发生变化是,调用notifyDataSetChanged();
通知它数据发生了变化,需要重绘,或者是添加一行等等。
本文标题:ListView 的数据更新之后重新显示
本文链接:https://www.haomeiwen.com/subject/nezljqtx.html
网友评论