ScrollView can host only one direct child。
16lz
2021-01-25
android 采用ScrollView布局时出现异常:
ScrollView can host only one direct child。
主要是ScrollView内部只能有一个子元素,即
不能并列两个子元素,所以需要把所有的子
元素放到一个LinearLayout内部或
RelativeLayout等其他布局方式。
更多相关文章
- android Fragment实现
- Android: NullPointerException when using RelativeLayout with
- Android学习札记6:ProgressBar圆形进度条的颜色设置
- Android(安卓)自定义注解
- Android(安卓)在代码中书写布局(xml)配置
- 第三节 布局
- 写在20110721:横竖屏切换
- AlertDialog使用自定义的布局
- Android(安卓)Studio 改变app启动页面