大鹏一日同风起

大鹏一日同风起
记录日常,记录生活,记录时代
  1. 首页
  2. 未分类
  3. 正文

android 布局文件提示错误“No orientation specified, and the default is horizontal. This is a common source of bugs when children are added dynamically.”

2014年7月12日 249点热度 0人点赞 0条评论

完整的错误提示信息为:No orientation specified, and the default is horizontal. This is a common source of bugs when 

 children are added dynamically.

发生这个错误提示的原因是<LinearLayout>要指明方向,水平方向(horizontal )还是垂直方向( vertical ),而这个布局文件没有指明,因此会导致该错误信息发生。

解决办法:

只要在<LinearLayout>添加上

 android:orientation = "vertical"

或

 android:orientation = "horizontal"

即可解决

标签: 暂无
最后更新:2014年7月12日

pbdatacn

这个人很懒,什么都没留下

点赞
下一篇 >

文章评论

razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
取消回复

归档

  • 2023 年 1 月
  • 2022 年 12 月
  • 2022 年 9 月
  • 2022 年 8 月
  • 2017 年 10 月
  • 2017 年 9 月
  • 2015 年 12 月
  • 2015 年 11 月
  • 2015 年 10 月
  • 2015 年 9 月
  • 2015 年 8 月
  • 2015 年 3 月
  • 2015 年 1 月
  • 2014 年 12 月
  • 2014 年 10 月
  • 2014 年 9 月
  • 2014 年 8 月
  • 2014 年 7 月

分类

  • Android
  • Docker
  • hadoop
  • linux
  • Redis
  • webservice
  • 文章
  • 未分类
  • 生活
  • 算法

COPYRIGHT © 2026 大鹏一日同风起. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang

京ICP备14029030号-1