【问题标题】:Implementing expandable list view with two child views open all the time and the remaining child list to open on group click?实现可扩展列表视图,其中两个子视图始终打开,剩余的子列表在组单击时打开?
【发布时间】:2017-11-17 11:54:49
【问题描述】:

我该如何实现呢? 我找到了扩展组视图以使用 expandgroup(groupposition) 显示所有子列表的解决方案,但找不到专门执行此操作的解决方案

【问题讨论】:

标签: android adapter expandablelistview


【解决方案1】:

看看这个库:Expandable Recycler View

如果我正确理解您想要实现的内容,您可以手动打开第一个和第二个项目,例如,在创建的活动上并覆盖 collapse() 方法以使项目不关闭。这些项目本身将是可展开的视图,并在您点击时打开。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-12-19
    • 1970-01-01
    • 2023-04-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多