我想在此表中设置一个scrollview。我该怎么办?
<TableLayout
android:id="@+id/lunchtableviewing"
android:layout_width="194dp"
android:layout_column="0"
android:layout_columnSpan="4"
android:layout_row="7" >
</TableLayout>
答案 0 :(得分:1)
AFAIK,ScrollView中的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 :(得分: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>