2010-05-26 67 views

回答

0

我真的不明白的感覺的問題,你是什麼意思從TableLayout

開關意味着一個 ExpandableListView

但ExpandableListView可以在XML就好定義

<ExpandableListView 
     android:id="@+id/myList" 
     android:layout_width="fill_parent" 
     android:layout_height="wrap_content" 
    /> 
+0

哇,不敢相信我忽略了這一點。 對於一個完整的實現看看: http://about-android.blogspot.com/2010/04/steps-to-implement-expandablelistview.html 它曾在那裏的一些技巧我使用。謝謝Alex! – Ryan 2010-05-26 20:36:31