简体   繁体   English

在组上方扩展Android的ExpandableListView子级

[英]Expanding Android's ExpandableListView Children above the Group

The default behavior of the ExpandableListView implementation is to expand a group's children below the group when clicked. ExpandableListView实现的默认行为是在单击时将组的子级扩展到该组之下。

I'm wondering if it is possible to alter this behavior in order to generate the children above the group (when clicked) by modifying an ExpandableListView XML attribute or programmatically somehow. 我想知道是否可以通过修改ExpandableListView XML属性或以编程方式以某种方式更改此行为,以便在组上方(单击时)生成子级。

我通过制作一个普通的ListView并添加一些onClickListeners来显示/隐藏RelativeLayout中包含的LinearLayout,从而完成了此功能集。

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

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