【问题标题】:android list view adapter call getview method manually (to refresh list rows)android列表视图适配器手动调用getview方法(刷新列表行)
【发布时间】:2013-09-22 14:03:40
【问题描述】:

是否可以在列表视图适配器中调用 getview 方法来刷新行? 还是有另一种手动刷新项目行的方法? 提前致谢 -卢卡斯

【问题讨论】:

  • mCursor = getCursor(); mAdapter.changeCursor(mCursor); mAdapter.notifyDataSetChanged();

标签: java android eclipse listview


【解决方案1】:

您应该为此使用适配器的notifyDataSetChanged() 方法。这将使列表视图刷新它的视图。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-07-26
    • 1970-01-01
    • 2016-11-24
    • 1970-01-01
    相关资源
    最近更新 更多