我是一名 Android 开发人员,我只想展开如图所示的列表,当我单击它时,我用红色箭头指示它,列表应该像 Youtube 一样展开。
请建议我该怎么做。我如何通过单击箭头来扩展它。如果有任何建议请帮助我。
最佳答案
您应该将 ListView
更改为
<ExpandableListView
android:id="@+id/expandalelistView"
android:layout_height="match_parent"
android:layout_width="match_parent"/>
This博客将帮助您实现您想要的。
关于java - 如何在单击箭头时展开列表(如 YouTube),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32819471/