expandable listview指标显示标题高度?

Nag*_*ddy 6 android indicator expandablelistview

我使用了一个可扩展的列表视图,组列指示器显示在列表的右侧,在此我有标题名称是单行我的输出像这样

在此输入图像描述

在上图中我的指标看起来不错.在下面的图像我的指标看起来不好它扩大,为什么会发生这种情况

在此输入图像描述

这是我的代码

    mExpandableList = (ExpandableListView)findViewById(R.id.expandable_list);
    mExpandableList.setIndicatorBounds(width - GetPixelFromDips(40), width - GetPixelFromDips(10)); 
Run Code Online (Sandbox Code Playgroud)

xml是

     <ExpandableListView
    android:id="@+id/expandable_list"        
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:groupIndicator="@drawable/group_indicator" />
Run Code Online (Sandbox Code Playgroud)

group_indicator.xml是

<selector xmlns:android="http://schemas.android.com/apk/res/android" >
    <item
        android:drawable="@drawable/arrow_down"     android:state_expanded="true"/>
    <item android:drawable="@drawable/arrow_up"/>
</selector>
Run Code Online (Sandbox Code Playgroud)

任何人都有想法帮助这一个........

Ale*_*Bcn 0

当您在您的adapterClass上膨胀它时,查看您在custom_group_layout.xml上使用的视图 getGroupView()。您的指标的视图可能有一个 fill_parent,这就是为什么当您的组包含更多文本行时您的项目会拉伸其图标。

一个例子