直接上代码,.xml布局文件
http://blog.csdn.net/aminfo/article/details/7846963
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<HorizontalScrollView
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:orientation="horizontal"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="5px"
android:text="第1列 | "/>
<TextView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="5px"
android:text="第2列 | "/>
<TextView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="5px"
android:text="第3列 | "/>
<TextView a