首页 > 编程语言 > 详细

错误: java.lang.RuntimeException: Binary XML file line #7: You must supply a layout_height attribute.

时间:2014-09-17 10:04:22      阅读:323      评论:0      收藏:0      [点我收藏+]

 java.lang.RuntimeException: Binary XML file line #7: You must supply a layout_height attribute.

 这个错误有可能是你指定了高度,但是在对应的dpi下没有声明这个dimen高度导致的错误。

 

<RelativeLayout

        android:layout_width="match_parent"

        android:layout_height="@dimen/titlebar_height" >

这个,你在xhdpi下定义了:

<dimen name="titlebar_height">50dp</dimen>

 

但是hdpi下没有,那么在hdpi下运行的程序就会报上面那个错误。

错误: java.lang.RuntimeException: Binary XML file line #7: You must supply a layout_height attribute.

原文:http://www.cnblogs.com/feitianlee/p/3976455.html

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