[英]How do I delete an item from a ListView in Android? Are there built-in controls like iOS has?
iOS has an easy-to-add Edit button that attaches to a UITableView to allow for a quick and easy way to delete items. iOS有一个易于添加的“编辑”按钮,该按钮附在UITableView上,以允许快速简便地删除项目。 See the screenshots here:
在此处查看屏幕截图:
Is there anything built-in like this for Android (specifically 4.0 and higher) so I don't have to create my own custom deleting controls and code? 是否有适用于Android的内置内容(特别是4.0及更高版本),所以我不必创建自己的自定义删除控件和代码? Thanks.
谢谢。
That would indeed be nice to have. 确实很高兴。 Unfortunately does Android not have that built-in.
不幸的是,Android没有内置。 You need to add that yourself.
您需要自己添加。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.