2012-01-06 72 views
0

當我將窗口分成兩半時,右端的箭頭不會出現在可展開列表視圖中。Expandable ListView

第二張圖片顯示了完美的要求。但我不想那樣。我想把它分成兩半。

但是通過這樣做,「箭頭」不會出現。

enter image description here

enter image description here

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 
android:orientation="vertical" 
android:layout_width="fill_parent" 
android:layout_height="fill_parent" 
android:id="@+id/rLayout"> 

<View 
    android:layout_width="1dip" 
    android:layout_height="fill_parent" 
    android:id="@+id/divider"/> 

<ExpandableListView 
    android:id="@+id/android:list" 
    android:layout_width="150dip" 
    android:layout_alignParentRight="true" 
    android:layout_height="fill_parent" 
    android:groupIndicator="@drawable/grp_indicator" 
    android:dividerHeight="1dp"> 

</ExpandableListView> 
</RelativeLayout> 
+0

yeah m發佈代碼.....等....在我的路上 – 2012-01-06 06:49:37

+0

但是我沒有得到第一個圖像中的箭頭 – 2012-01-06 06:50:10

+0

我的意思是在第二個圖像itzz工作正常... – 2012-01-06 06:50:27

回答

-1

我認爲你需要使用LinearLayout下即放重量你的意見。它可能適合你。

+0

lemme試試.... !!! – 2012-01-06 07:02:36

+0

不....不工作.... !!! – 2012-01-06 07:09:14

+0

相對佈局中沒有重量選項 – 2012-01-06 07:15:44