+ 1
Java - How to do an action with a ListView but in adapter's acrivity?
Hi I'm doing an app with two activities: MainActivity and Adapter activity. Is there a way to do listview.setOnMenuItemClickListener but in the activity of the adapter of the listview? Thank you F
2 Réponses
+ 5
You don't really need a separate adapter for a list view, Use a recyclerview with a separate adapter class
you can customize you recyclerview with images, buttons etc. it will look more beautiful and cool too 😁
0
Shane Umayanga thank you, but I think I wasn't clear, I don't want another adapter. I was asking if there's a way to do some actions with the listview in the adapter class, because I cannot access some methods in the main activity. Is there a way? Tks