gpt4 book ai didi

android - 如何为没有 child 的组隐藏 ExpandableListView 指示器

转载 作者:塔克拉玛干 更新时间:2023-11-02 22:03:12 24 4
gpt4 key购买 nike

<分区>

Possible Duplicate:
ExpandableListView - hide indicator for groups with no children

隐藏没有 child 的群体的指标

主.xml

<ExpandableListView 
android:id="@+id/elv"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:groupIndicator="@drawable/selector">
</ExpandableListView>

选择器.xml

<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_empty="true" android:drawable="@android:color/transparent"/>
<item android:state_expanded="true" android:drawable="@drawable/expanded" />
<item android:drawable="@drawable/collapse" />
</selector>

它对我的 ICS 不起作用,似乎所有折叠组的状态都是空的

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com