OnListItemClick和onItemClickListener之间的区别是什么(What's the difference between OnListItemClick vs on

编程入门 行业动态 更新时间:2024-10-24 04:35:23
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().

更多推荐

本文发布于:2023-07-25 19:40:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1265182.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:区别   OnListItemClick   onItemClickListener   difference

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!