简体   繁体   English

ExpandableListView缓慢扩展

[英]ExpandableListView Slow expanding

How can I increase the duration of expand action in expandableListView in android 如何在Android中的ExpandableListView中增加展开动作的持续时间

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. 不幸的是,似乎最简单的方法是使用常规ListView并自己处理扩展和动画。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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