Android—Exception raised during rendering: ScrollView can host only one direct child

来源:互联网 发布:php互助金融 编辑:程序博客网 时间:2024/05/29 11:29

android 采用ScrollView布局时出现异常:ScrollView can host only one direct child。

主要是ScrollView内部只能有一个子元素,即不能并列两个子元素,所以需要把所有的子元素放到一个LinearLayout内部或RelativeLayout等其他布局方式。

0 0