0
如果內容太大而水平和垂直,我該如何實現這個表格滾動?Android可滾動表格
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<ImageView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/banner" />
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/myTableLayout"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TableRow
android:background="@drawable/standard"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<TextView android:text="@string/rankColumnHeader"
android:layout_margin="6sp"
android:textColor="@color/black"/>
<TextView android:text="@string/teamColumnHeader"
android:layout_margin="6sp"
android:textColor="@color/black"/>
<TextView android:text="@string/matchesColumnHeader"
android:layout_margin="6sp"
android:textColor="@color/black"/>
<TextView android:text="@string/winColumnHeader"
android:layout_margin="6sp"
android:textColor="@color/black"/>
<TextView android:text="@string/drawColumnHeader"
android:layout_margin="6sp"
android:textColor="@color/black"/>
<TextView android:text="@string/looseColumnHeader"
android:layout_margin="6sp"
android:textColor="@color/black"/>
<TextView android:text="@string/winPercentColumnHeader"
android:layout_margin="6sp"
android:textColor="@color/black"/>
<TextView android:text="@string/pointsColumnHeader"
android:layout_margin="6sp"
android:textColor="@color/black"/>
<TextView android:layout_margin="6sp"
android:textColor="@color/black"
android:id="@+id/demoTextView"/>
</TableRow>
</TableLayout>
</LinearLayout>
不知道爲什麼,但它不顯示我的滾動條。我不能滾動oltough我使用這個滾動視圖 – Androidewbie