首页 > 其他 > 详细

No orientation specified, and the default is horizontal.

时间:2015-03-04 17:04:04      阅读:365      评论:0      收藏:0      [点我收藏+]

出现下边的问题解决方法:


技术分享


整的错误提示信息为: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"

即可解决

No orientation specified, and the default is horizontal.

原文:http://blog.csdn.net/xlgen157387/article/details/44060649

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!