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

More advance sample application. #3

Closed joakim5937x closed 11 years ago

joakim5937x commented 11 years ago

Hi! Planing to use this library for my new app, and it feels like when i look at the sample application that it is a little "thin". For those who is like me, not pros, it could really help if you added some functionality to the sample so you can see how it work and how you should use it.

I my selves have problem understanding how I can set click listeners on the buttons that is being slide down when you press the "slide down button" or how i should to to update a textview in the slidedown area. Also is it possible to set click listener on the actual "slide down button"?

Thank you!

tjerkw commented 11 years ago

You are right the sample is very thin. I am going to extend the sample to also show how to use onclick listeners properly. For all buttons.

Greetings

tjerkw commented 11 years ago

I just updated the code to make it easier to listen for click events in the buttons in the expandable area of the listitem. https://github.com/tjerkw/Android-SlideExpandableListView/commit/9b33dc4841e22c3586232816cfac7c70b1c556ca

I also updated the sample app, it now shows howto listen for action event. An action event is a OnClick event on one of the buttons in the expandable view.

The other click listeners that you are asking for, are more difficult:

tjerkw commented 11 years ago

For example usage see: https://github.com/tjerkw/Android-SlideExpandableListView/blob/master/sample/src/com/tjerkw/slideexpandable/sample/ExampleActivity.java

tjerkw commented 11 years ago

I am closing this issue. The example will be expanded in the future, to show different use cases.