今天在做安卓项目时,想使用滚动条保证页面布局,使用方法比较简单,
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:scrollbars="vertical"
android:fadingEdge="vertical">
<Layout>
</ScrollView >
但意外的报了异常ScrollView can host only one direct child
本以为是我的xml文件写错啦,翻阅几个博客发现异常原因是