简体   繁体   中英

ExpandableListView Slow expanding

How can I increase the duration of expand action in expandableListView in android

In my code when I call

 expList.expandGroup(gp); 

it expands very quickly ... I want it to be expanded slowly to appear as if it is sliding

Any suggestions?

I think that this question is similar to yours and therefore may be of use to you. It seems like the right approach to take is to look at it as an animation, in which case the answer to the above question would apply; it also seems (unfortunately) that the easiest way to do it would be using a regular ListView and handling the expansion and animation yourself.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM