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

Added two override method #50

Closed haoyuexing closed 10 years ago

haoyuexing commented 10 years ago

Added two method, they are "ActionSlideExpandableListView.setAdapter" and "SlideExpandableListView.setAdapter". Now, you can use custom layout name,that two layout name "expandable" and "expandable_toggle_button" could be changed,considering this widget may be widely used in activity or fragment. So the naming should base on specification. The original usage is like "list.setAdapter(buildDummyData());". Now, You can use "list.setAdapter(buildDummyData (),R.id.item_layout,R.id.button_layout);".

thanks.

tjerkw commented 10 years ago

You reformatted all the code, i cannot accept this pull request. Keep your changes minimal and conform to the coding style.