首页 > 其他 > 详细

No orientation specified, and the default is

时间:2016-02-01 13:44:25      阅读:237      评论:0      收藏:0      [点我收藏+]

链接地址:http://jingyan.baidu.com/article/a24b33cd7722dc19fe002bd0.html

No orientation specified, and the default is horizontal. This is a common source of bugs when children are added dynamically.

没有方向指定,默认是水平的。

技术分享
 

工具/原料

  • eclipse
  • ADT
  • JDK

方法/步骤

  1.  

    出现这种问题是因为直接布局无法定位其方向性,而在使用<LinearLayout>标签要指明方向

    技术分享
  2.  

    只要指定一个orientation(定向,方向,定位)

    语句为:

    android:orientation = "vertical"

    技术分享
  3.  

    在tab1下回车,

    技术分享
  4.  

    并写入语句:

    android:orientation = "vertical"

    技术分享
  5.  

    这时仍然提示错误,是因为你没有保存,保存(Ctrl+s)后即能解决:

    技术分享
  6.  

    最后分别在tab2与tab3写入语句:android:orientation = "vertical"

    技术分享
  7.  

    最后保存(Ctrl+s)即可:

    技术分享
  8.  

No orientation specified, and the default is

原文:http://www.cnblogs.com/wvqusrtg/p/5174693.html

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