Tôi đang có bảng được xác định trong tệp XML, hiện được đặt thành Cuộn theo chiều dọc. Nhưng tôi cũng muốn nó cuộn theo chiều ngang theo yêu cầu.làm cách nào để bố cục bảng để cuộn cả hai chiều (theo chiều ngang, chiều dọc)
Đây là mã của XML được sử dụng
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:scrollbars="vertical"
android:layout_height="fill_parent"
android:layout_width="fill_parent">
<TableLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:stretchColumns="0,1,2"
android:id="@+id/tLayout"
android:scrollbars="vertical"
>
<TableRow
android:layout_width="fill_parent">
<TextView
android:padding="3dip"
android:gravity="left"
android:text="Name"
/>
<TextView
android:padding="3dip"
android:gravity="left"
android:text="Address"
/>
<TextView
android:padding="3dip"
android:gravity="left"
android:text="Age"
/>
</TableRow>
</TableLayout>
</ScrollView>
oh, tôi thấy bây giờ đây là 2010- dù sao đi nữa ... – edwardsharp