listview的adapter中,點擊條目中的按鈕調用取消這個條目的接口,讓條目自動刷新!

效果圖:如圖所示, 在adapter中調用取消接口成功後,在成功的回調函數中 這樣寫就OK了 if (list != null){ list.remove(position); } notifyDataSetChanged();
相關文章
相關標籤/搜索