[android-developers] Re: java.lang.RuntimeException: Binary XML file line #26: You must supply a layout_height attribute.

2009-02-15 Thread Mark Murphy
ying lcs wrote: I get the following error in logcat: java.lang.RuntimeException: Binary XML file line #26: You must supply a layout_height attribute. Can you please tell me which xml file that I am missing? You are not missing a file. However, one of your layout XML files has an element

[android-developers] Re: java.lang.RuntimeException: Binary XML file line #26: You must supply a layout_height attribute.

2009-02-15 Thread Al
Check the file you are passing to setContentView (or whatever file you are using for your view) inside your activity. Line 26 is missing the required attribute. On Feb 15, 5:28 pm, ying lcs ying...@gmail.com wrote: I get the following error in logcat: java.lang.RuntimeException: Binary XML

[android-developers] Re: java.lang.RuntimeException: Binary XML file line #26: You must supply a layout_height attribute.

2009-02-15 Thread Sergey Ten
This error message means that the layout file for this particular activity does not specify the layout height attribute. I would guess that the LinearLayout height should be set to fill_parent, so that it would consume the entire screen (vertically). Hope that makes sense, Sergey ying lcs