Does anyone know how to get an expandable layout like the payment method and the in the link? I don't want it to be in a listview because I need such an expandable layout works for other things with different content. Or it could be in an expandable list view if items have different content can be fitted in. Thank you in advance!
http://chairnerd.seatgeek.com/images/autocomplete_checkout.gif
I found a solution.
Put something like the following in your layout file
Add to your build gradle file
The way to set onClick listener for expanding the layout
More detail description: http://www.codeisall.com/android-expandable-layout/