3

我有一个消耗性列表视图我删除了图标但空间仍然是空的

在此处输入图像描述

如何删除空间。

XML:

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".DirectorActivity" >

<ExpandableListView
    android:id="@+id/expandable_list"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:transcriptMode="alwaysScroll"
    android:cacheColorHint="#00000000"
    android:listSelector="@android:color/transparent"
    android:layout_below="@+id/heading_textView"
    android:layout_marginTop="16dp" 
    android:groupIndicator="@null"
    android:divider="@android:color/transparent">
</ExpandableListView>

4

1 回答 1

0

我也遇到过这个问题,我已经申请android:groupIndicator="@null"了,但对我没有用。

我认为只是hide the Icon在那个地方它没有删除图标。

因此,我遵循了其他一些示例,并根据我的要求编辑了该代码。

请尝试一次,希望它对您有用。

于 2013-07-17T06:43:47.253 回答