您当前的位置: 首页 > 

布局文件提示错误“No orientation specified, and the default is horizontal. This is a common so...”

发布时间:2014-04-18 10:11:47 ,浏览量:0

完整的错误提示信息为:No orientation specified, and the default is horizontal. This is a common source of bugs when  children are added dynamically.

通常发生这个错误提示的原因是我们直接在原有的页面上把别的布局标签改成,但是使用标签要指明方向,水平方向还是垂直方向

horizontal or vertical

所以直接修改,会导致没有指名线性布局的方向,只要添加上

 android:orientation = "vertical"

 android:orientation = "horizontal"

即可解决

关注
打赏
1688896170
查看更多评论

暂无认证

  • 0浏览

    0关注

    111426博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文
立即登录/注册

微信扫码登录

0.0623s