Custom ListView layout crashes my activity
<p>I am starting out on Android and trying to make a custom ListView layout. I've followed some guides and have made the following code:</p>

<pre><code>public class CheckInList extends ListActivity {
...
    @Override
    public void onCreate(Bundle savedInstanceState) {
        ...
        mAdapter = new ArrayAdapter&lt;String&gt;(this, R.layout.checkinlist_item, R.id.checkinlist_item_text, mNames);
        setListAdapter(mAdapter);
        ...
    }
}
</code></pre>

<p>This is the code for checkinlist_item.xml:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;RelativeView xmlns:android="http://schemas.android.com/apk/res/android"
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"
              android:background="@drawable/checkinlist_item_bg"&gt;
    &lt;TextView android:id="@+id/checkinlist_item_text"
              style="@style/RegisterText" /&gt;
&lt;/RelativeView&gt;
</code></pre>

<p>If I use android.R.layout.simple_list_item_1 instead of my above template then everything is fine and my ListView works, however whenever I use the above code my activity crashes. I am running things on Android 1.5.</p>

<p>Any ideas why things are crashing?</p>
