[英]expand and collapse TextView inside ListView in Android
I want to use expand and collapse in my android app. 我想在我的android应用程序中使用Expand和折叠。 Every description name should be in ListView and after clicking ListView, It should expand a TextView with description and collapse again after clicking that ListView.
每个描述名称都应在ListView中,并在单击ListView后,应展开带有描述的TextView,然后在单击该ListView后再次折叠。 And I have more 10 description.
而且我还有更多10条描述。
Thanks for any help. 谢谢你的帮助。
use ExpandableListView
for this functionality. 为此功能使用
ExpandableListView
。
Here is some tutorial 这是一些教程
u can also see these links for more info 您还可以查看这些链接以获取更多信息
http://developer.android.com/reference/android/widget/ExpandableListView.html http://developer.android.com/reference/android/widget/ExpandableListView.html
http://developer.android.com/reference/android/widget/ExpandableListView.OnChildClickListener.html http://developer.android.com/reference/android/widget/ExpandableListView.OnChildClickListener.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.