对ListView某一项进行操作

删除ListView某一项:

listView.remove(position);//删除position的一项

listItemAdapter.notifyDataSetChanged();//更新ListView

更新ListView某一项

listView.remove(position);//删除位于position的项
listView.add(position, map);//在position位置用新的map填充数据
listItemAdapter.notifyDataSetChanged();//更新ListView

posted @ 2012-09-17 16:18  时光独白  阅读(172)  评论(0编辑  收藏  举报