java.lang.IllegalStateException: ScrollView can host only one direct child

 

原因是在外面有一个TextView控件,将其删除则OK。

主要是ScrollView内部只能有一个子元素,即不能并列两个子元素,所以需要把所有的子

元素放到一个LinearLayout内部或RelativeLayout等其他布局方式。

posted on 2013-07-30 09:54  猥琐丶欲为  阅读(5747)  评论(0)    收藏  举报