Android报错|ScrollView can host only one direct child

android 采用ScrollView布局时出现异常:ScrollView can host only one direct child。主要是ScrollView内部只能有一个子元素,即不能并列两个子元素,所以需要把所有的子元素放到一个LinearLayout内部或RelativeLayout等其他布局方式。

posted @ 2018-04-24 20:03  Tiger_Jiang  阅读(237)  评论(0编辑  收藏  举报