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

原因:

主要是ScrollView内部只能有一个子元素,即不能并列存在多个子元素

解决办法:

把所有的子元素放到一个LinearLayout内部

你可能感兴趣的:(exception,Android开发)