Bad XML block: header size 2370 or total size 0 is larger than data size 0

 

出现1:当在视频教学中的计算两数积时,运行activity03时,出现错误

原因1:layout中的布局文件***.xml采用了RelativeLayout的相对布局,那么源代码中的TextView,Button,EditText堆积在一起溢出,出错。

解决:采用线型布局,LinearLayout,并采用垂直线型布局,android:orientation=”vertical”

posted on 2012-08-02 19:42  henry_xu  阅读(5564)  评论(1)    收藏  举报