ScrollView也是一个Layout布局,可以让它内部的数据显示不下的时候出现滚动条,要注意的是不能在ScrollView中放多个组件,如果放了多个组件,会出现如下错误:ERROR/AndroidRuntime(271): Caused by: java.lang.IllegalStateException: ScrollView can host only one direct child (ScrollView只能包裹一个直接子元素) http://android.yaohuiji.com/archives/319
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:scrollbars="vertical">
</ScrollView>
http://android.yaohuiji.com/archives/319