主要步驟:
1,刪除或添加ListView對應的Adapter 的Data元素
2,調用adapter的 notifyDataSetChanged(),通知ListView進行重繪
如:
private List<Map<String,String>> mPageInfoList;
……
……
mPageInfoList.remove(position); // 移除其中一個元素
WindowListAdapter.this.notifyDataSetChanged();