I'm beginner in android. On a list view I have two buttons on each list items. I want to implement click listener for both buttons. so where should i apply on click listener methods for buttons ?
Asked
Active
Viewed 56 times
-2
-
according to me you should just initialise click listener in getView and take callback in your activity/fragment – Vivek Mishra Sep 24 '16 at 09:36
-
1Possible duplicate of [Android: ListView elements with multiple clickable buttons](http://stackoverflow.com/questions/1709166/android-listview-elements-with-multiple-clickable-buttons) – Mike M. Sep 24 '16 at 09:39
-
Atleast post some code, someone in need of SO points will answer these repeated questions also. – Mohammed Atif Sep 24 '16 at 09:44
1 Answers
0
You can implement onclick listener inside adapter for each item of your listView
hope this helps.

SepJaPro2.4
- 704
- 9
- 19