No orientation specified, and the default is horizontal.
2015-01-14 21:30
525 查看
androidXMLUI
整的错误提示信息为: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. This is a common source of bugs when
children are added dynamically.
通常发生这个错误提示的原因是我们直接在原有的页面上把别的布局标签改成<LinearLayout>,但是使用<LinearLayout>标签要指明方向,水平方向还是垂直方向
horizontal or vertical
所以直接修改,会导致没有指名线性布局的方向,只要添加上
android:orientation = "vertical"
或
android:orientation = "horizontal"
即可解决
相关文章推荐
- Android中的错误:Wrong orientation? No orientation specified, and the default is horizontal
- No orientation specified, and the default is horizontal. This is a common so
- Android积累之《Wrong orientation? No orientation specified, and the default is horizontal, yet this la:》
- No orientation specified, and the default is horizontal. This is a common source of bugs when ...
- Wrong orientation? No orientation specified, and the default is horizontal, yet this la:
- Android Q&A | No orientation specified, and the default is horizontal,
- No orientation specified, and the default is horizontal. This is a common source of bugs
- android No orientation specified, and the default is horizontal.
- Android—No orientation specified, and the default is horizontal.
- No orientation specified, and the default is horizontal.异常处理(转)
- android相关报错之<Wrong orientation? No orientation specified, and the default is horizontal。。
- No orientation specified, and the default is horizontal. This is a common source of bugs when childr
- 布局文件提示错误“No orientation specified, and the default is horizontal. This is a common so...”
- 布局文件提示错误“No orientation specified, and the default is horizontal. This is a common so...”
- Wrong orientation? No orientation specified, and the default is horizontal, yet this layout has mult
- No orientation specified, and the default is horizontal.
- 布局文件提示错误“No orientation specified, and the default is horizontal. This is a common so...”
- No orientation specified, and the default is horizontal.
- No orientation specified, and the default is horizontal. This is a common source of bugs when childr
- Android积累之《Wrong orientation? No orientation specified, and the default is horizontal, yet this la:》