how to refresh custom listview using baseadapter in android

后端 未结 5 752
无人及你
无人及你 2020-12-08 23:37

sir, how can i refresh my custom listview using baseadapter. i don\'t know what to place, or where to place it in my code. please help me. thanks in advance



        
5条回答
  •  -上瘾入骨i
    2020-12-09 00:20

    Simply with BaseAdapter, no need to use context

    listsOfNotes.remove(listsOfNotes.get(position));
    notifyDataSetChanged();
    

    just place this code on setOnClickListner

提交回复
热议问题