tjerkw / Android-SlideExpandableListView

A better ExpandableListView, with animated expandable views for each list item
Apache License 2.0
1.98k stars 741 forks source link

list.setItemActionListener() for dynamically objects #38

Closed iTSangar closed 10 years ago

iTSangar commented 11 years ago

Above all, great job with your Framework.

\ I know that this question should not be here, however have not found a different location or person who can answer it better.

In your method setItemActionListener received parameters of class R. When I create dynamic objects in the code and put in the list, as I proceed to pass parameter for your method, when they are clickable?

eg. TableRows add dynamically in part expandable, and need use your method for action click.

thanks for understanding

tjerkw commented 10 years ago

See the code in ActionSlideExpandableListView for the internal implementation. As you can see it creates a wrapper list adapter which in turn wraps the getView object to create the listeners. Maybe you could hack your way into there.