链接地址: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 方法/步骤 出现这种问题是因为直接布局无法定位其方向性,而在使用<LinearLayout>标签要指明方向 只要指定一个orientation(定向,方向,定位) 语句为: android:orientation = "vertical" 在tab1下回车, 并写入语句: android:orientation = "vertical" 这时仍然提示错误,是因为你没有保存,保存(Ctrl+s)后即能解决: 最后分别在tab2与tab3写入语句:android:orientation = "vertical" 最后保存(Ctrl+s)即可: 相关文章: 2021-10-04 2022-12-23 2021-12-07 2021-11-17 2022-12-23 2022-12-23 2021-11-23