<ExpandableListView
android:id="@+id/android:list"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:groupIndicator="@drawable/group_indicator"
android:background="#ffffff"
/>
我使用了带有组指示器的可扩展 ListView ... 如果在 ListView 第四位置,组没有子项...那么它不应该在第四位置显示指示器...如何使用它
最佳答案
尝试将 ExpandableListView 的 android:groupIndicator 属性设置为空值或透明颜色。
类似 android:groupIndicator="@android:color/transparent"
关于java - 根据 ListView 位置隐藏可扩展 ListView 的 groupIndicator,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7009049/