Android ListView With CheckBoxes
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I've found a sample about populating a listView from a database in android,it works well,but I want to add some functionality to this application,I want to put a checkbox next to each item in my listview and when the user checks each item he will be able to delete that item by pressing a Confirm button.I've put these lines to make the multiple choice enabled ,but the checkbox does not appear and I don't know how to delete the selected Item ! ListView lstView = getListView(); lstView.setChoiceMode(2); public void onListItemClick( ListView