Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Pretty strange you get that 'difference' between the emulator and your real device, because that error should also occur on your emulator. That's one of the reasons why I develop in both the emulator and a real device, behavior between both differs more than you like.</p> <p>XML file line #73: You must supply a layout_width attribute.</p> <p>This error is quite straight forward, every element you add to the layout XML ought to have an layout_width and layout_height so Android knows how to display them.</p> <p>You haven't supplied the layout XML so I can't show you a corrected one. One example from my layout's:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" android:background="#FFFFFF"&gt; &lt;ListView android:id="@+id/list" android:layout_width="match_parent" android:layout_height="match_parent"&gt; &lt;/ListView&gt; &lt;/LinearLayout&gt; </code></pre> <p>Notice the layout_width and layout_height are being used in all 'XML tags' so Android knows how to position them.</p> <p>match_parent is one of the values, which one you need can be found on the Android-developer site: <a href="http://developer.android.com/guide/topics/resources/layout-resource.html#layoutvalues" rel="nofollow">http://developer.android.com/guide/topics/resources/layout-resource.html#layoutvalues</a></p> <p>Tip: You're using Eclipse for developing with Android? type in: android:layout_width=" and then press CTRL+SPACEBAR it should autocomplete ;)</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload