+ 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

26th Apr 2018, 5:39 PM
faby GT
faby GT - avatar
2 Antworten
+ 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 😁
27th Apr 2018, 2:30 PM
Shane Umayanga
Shane Umayanga - avatar
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
28th Apr 2018, 6:40 AM
faby GT
faby GT - avatar