cachapa / ExpandableLayout

An expandable layout container for Android
Apache License 2.0
2.34k stars 274 forks source link

Is it possible to add expandable items dynamically? (when user taps on recyclerview item row) #8

Closed pruthvirajha closed 8 years ago

pruthvirajha commented 8 years ago

If answer is yes. pls tell me how?

cachapa commented 8 years ago

That isn't currently possible since you can't set a view as expandable in code.

You can try ExpandableLayout in the efficient_expansion branch, but that's not available yet as a dependency - you'd have to compile the code yourself.

pruthvirajha commented 8 years ago

Thanks for the reply. I tried this way, I have added a linearlayout in XML and set the property expandable to true, after that in runtime I have added items to that layout. It worked thanks