I delete an item in a listview so that it does not appear! I know the name of the element (like if I have a list of fruits: apple is the target) I want to delete the “apple”. To do this I use the lv.remove(position) where lv is ListView, how do I find the position knowing only the name “Apple” and NO (xy) of the listview?
I delete an item in a listview so that it does not appear! I
Share
I think you maybe have used adapter, if I,I should use baseadapter,put fruit in ArrayList<>,and we can control ArrayList ,refresh your adapter.Ok,This’s my view.