No orientation specified, and the default is

2026-02-12 19:55:26

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

No orientation specified, and the default is

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

语句为:

android:orientation = "vertical"

No orientation specified, and the default is

3、在tab1下回车,

No orientation specified, and the default is

4、并写入语句:

android:orientation = "vertical"

No orientation specified, and the default is

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

No orientation specified, and the default is

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

No orientation specified, and the default is

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

No orientation specified, and the default is

猜你喜欢