2012-04-27 2 views
0

이 표에서 scrollview를 설정하고 싶습니다. 제발 어떻게 할 수 있니?테이블 레이아웃의 Scrollview?

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

답변

1

AFAIK는 TableLayout을가있는 ScrollView 안에 가능한 :

<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> 
입니다
관련 문제