OnListItemClick和onItemClickListener之间的区别是什么(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?
最满意答案
侦听器是一个接口,另一个是您为该接口实现的方法。 您还需要setOnItemClickListener()。
The listener is an interface and the other is the method you implement for that interface. You'll also need setOnItemClickListener().
更多推荐
发布评论