更改行的高度在ListView [英] Change the height of a row in a listview

查看:162
本文介绍了更改行的高度在ListView的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要当用户单击某一行,该行的增长,显示与规模动画的更多的项目,但我找不到我怎么能做到这一点。结果
第一:我不知道我怎么能在运行时改变一个高度行。我试着做的项目可见,但如果我用另一个XML布局夸大这甚至没有工作。结果
:如果我实现了第一个,我想我可以做规模动画,但任何的建议是一个很好preciated

I want when a user clicks a row, that row grows to show more items with an scale animation, but I can't find how can I do that.
First: I don't know how can I change a height row at runtime. I've tried making the items visible, but this didn't work even if I inflate with another XML layout.
Second: If I achieve the first one, I think I could make the scale animation, but any suggestion is well apreciated.

感谢。

推荐答案

这是在<一个很好地解释href=\"http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/view/List6.html\">APIDemos本身。检查Collopsed列表适配器ApiDemos /浏览/列表/ 6。 ListAdapter崩溃了。希望它能帮助

This is explained well in APIDemos itself. Check the Collopsed List Adapter in ApiDemos/Views/Lists/6. ListAdapter Collapsed. Hope It helps

这篇关于更改行的高度在ListView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆