我一直在使用與組指標一個可擴展的列表視圖顯示列表的右側,在此我已經標題名稱是單行我的輸出這樣的可擴展列表視圖指標顯示標題高度?
在上圖中我的指標是好看。 下面的圖片在我的指示找不好就擴大了,爲什麼出現這種情況
這裏是我的代碼
mExpandableList = (ExpandableListView)findViewById(R.id.expandable_list);
mExpandableList.setIndicatorBounds(width - GetPixelFromDips(40), width - GetPixelFromDips(10));
XML是
<ExpandableListView
android:id="@+id/expandable_list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:groupIndicator="@drawable/group_indicator" />
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>
任何一個有想法的幫助,當你誇大它放在你的adapterClass的getGroupView()
這一........
您使用哪個佈局來設置組項目? – AlexBcn 2013-04-24 12:28:27
@AlexBcn linearlayout ......... – NagarjunaReddy 2013-04-24 12:34:07