[英]What's the difference between OnListItemClick vs onItemClickListener
I can't figure out which to use. 我不知道该使用哪个。 I am trying to make it so that when you click on an item on the list view adapter, it will delete the item. 我试图这样做,以便当您在列表视图适配器上单击某个项目时,它将删除该项目。 Which one should I use? 我应该使用哪一个?
The listener is an interface and the other is the method you implement for that interface. 侦听器是一个接口,另一个是您为该接口实现的方法。 You'll also need setOnItemClickListener(). 您还需要setOnItemClickListener()。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.