您的位置:首页 > 其它

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

2014-04-18 10:11 585 查看


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

children are added dynamically.

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

horizontal or vertical

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

android:orientation = "vertical"



android:orientation = "horizontal"

即可解决
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐