开发者

How do I animate ListView item hights?

开发者 https://www.devze.com 2023-01-16 22:36 出处:网络
I have a simple ListView in my application. What I want to do on a row select is to expand it and show additional details in the开发者_开发问答re and then if some other is selected then collapse the p

I have a simple ListView in my application. What I want to do on a row select is to expand it and show additional details in the开发者_开发问答re and then if some other is selected then collapse the previous one and expand the new one.

I can modify the contents list item row in onListItemClick() method. However how do I animate the change in height of the list item row.

Is there a better way to do it? Or is there a better component still? I don't want to use the expandable list as it's not a group of child lists, instead just expanding the contents with more details.

Any help is much appreciated. Cheers


Have a look at Lazylist below this.

http://open-pim.com/tmp/LazyList.zip

i think this example is great for build your custom ListView

0

精彩评论

暂无评论...
验证码 换一张
取 消