简体   繁体   中英

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().

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM