2012-04-27 76 views
0

我想在此表中设置滚动视图。我该怎么做?ScrollView在tablelayout里面?

<TableLayout 
    android:id="@+id/lunchtableviewing" 
    android:layout_width="194dp" 
    android:layout_column="0" 
    android:layout_columnSpan="4" 
    android:layout_row="7" > 
</TableLayout> 

回答

1

据我所知,TableLayout内滚动型尽可能:

<ScrollView 
android:layout_width="match_parent" 
android:layout_height="wrap_content"> 
<LinearLayout 
android:layout_width="match_parent" 
android:layout_height="wrap_content"> 
<TableLayout 
    android:id="@+id/lunchtableviewing" 
    android:layout_width="194dp" 
    android:layout_column="0" 
    android:layout_columnSpan="4" 
    android:layout_row="7" > 
</TableLayout> 
</LinearLayout> 
</ScrollView> 
1

这是怎么

<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" 
    android:layout_width="match_parent" 
    android:layout_height="match_parent"> 

<TableLayout 
android:id="@+id/lunchtableviewing" 
android:layout_width="194dp" 
android:layout_column="0" 
android:layout_columnSpan="4" 
android:layout_row="7" > 
</TableLayout> 
</ScrollView> 
相关问题