Note that there are some explanatory texts on larger screens.

plurals
  1. POXML layout not cooperating
    text
    copied!<p>I'm having trouble trying to use a list in my activity. My XML for res/layout/main.xml is as follows:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" &gt; &lt;TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/hello" /&gt; &lt;ListView android:id="@+id/ListView01" android:layout_width="wrap_content" android:layout_height="wrap_content"&gt; &lt;TwoLineListItem android:id="@+id/TwoLineListItem01" android:layout_width="wrap_content" android:layout_height="wrap_content"&gt; &lt;TextView android:id="@android:id/text1" android:layout_marginTop="1dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize="15sp" android:textStyle="bold" android:text="@string/text1" /&gt; &lt;TextView android:id="@android:id/text2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@android:id/text1" android:layout_alignLeft="@android:id/text1" android:paddingBottom="4dip" android:includeFontPadding="false" android:textSize="15sp" android:textStyle="normal" android:text="@string/text2" /&gt; &lt;/TwoLineListItem&gt; &lt;/ListView&gt; &lt;/LinearLayout&gt; </code></pre> <p>Once I try to run it, however, my app just "quits unexpectedly". It's got to be something wrong with the XML, since the activity is just the default <code>setContentView(R.layout.main);</code> Please tell me what I'm doing wrong.</p>
 

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