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

标签 android android-listview expandablelistview

ExpandableListView 中,有没有办法为没有 child 的组隐藏组指示器?

最佳答案

试试这个>>>

适用于所有项目

 getExpandableListView().setGroupIndicator(null);

在xml中

android:groupIndicator="@null"

关于android - ExpandableListView - 为没有 child 的组隐藏指示器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4145090/

相关文章:

android - 如何在android中的expandablelistview的子菜单中添加可点击的http链接

android - 使用 header 从可扩展 ListView 中检索原始适配器

android 系统尝试绘制大尺寸位图(崩溃报告)

java - 使用异步任务将大字符串从 Android 发送到 Servlet

Android ListView 在滚动时崩溃

android - listview在android中显示数据库中的数据

android - 将 SwipeRefreshLayout 与 Viewpager 和 Tablayout 结合使用

javascript - 在 react-native 中关闭应用程序之前的最后一个方法(或函数)

java - Android ListFragment 打乱了最初未呈现的元素的顺序

Android - ExpandableListView 不显示任何内容