【问题标题】:Change ExpandableListView edit view [duplicate]更改 ExpandableListView 编辑视图 [重复]
【发布时间】:2026-01-10 03:15:01
【问题描述】:

如何在ExpandableListview 中删除它?

【问题讨论】:

  • 从您自己的布局文件中删除。

标签: android expandablelistview


【解决方案1】:

您可以像这样以编程方式删除;

 getExpandableListView().setGroupIndicator(null);

通过使用xml;

android:groupIndicator="@null"

【讨论】:

    【解决方案2】:
    android:groupIndicator="@null" 
    

    在你的 xml 中使用这个属性

    【讨论】:

      【解决方案3】:

      以编程方式尝试此操作

      ExpandableListView yourListView = (ExpandableListView)findViewById(R.id.yourListView );
      
      yourListView .setGroupIndicator(null);  
      
      yourListView .setChildIndicator(null);
      

      并尝试更改ExpandableListView's 属性android:groupIndicator="@null"

      【讨论】:

        最近更新 更多