国内最全IT社区平台 联系我们 | 收藏本站
华晨云阿里云优惠2
您当前位置:首页 > php开源 > 综合技术 > No orientation specified, and the default is horizontal.

No orientation specified, and the default is horizontal.

来源:程序员人生   发布时间:2015-04-10 08:19:11 阅读次数:3784次

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




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

便可解决

生活不易,码农辛苦
如果您觉得本网站对您的学习有所帮助,可以手机扫描二维码进行捐赠
程序员人生
------分隔线----------------------------
分享到:
------分隔线----------------------------
关闭
程序员人生