Set emptyView of android listActivity
<p>i have created a My custom listActivty by extending ListActivity like this.</p>

<pre><code>public class MainList extends ListActivity {

ListView listView;

public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    listView = getListView();
    setContentView(R.layout.list_main);

   }

}
</code></pre>

<p>And declaring its xml like this</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;ListView android:id="@id/android:list"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        &gt;
&lt;/ListView&gt;
&lt;TextView android:id="@id/android:empty"
        android:layout_width="fill_parent" 
        android:layout_height="fill_parent" 
        android:background="#FFFFFF"
        android:text="My Text"
/&gt;

&lt;/LinearLayout&gt;
</code></pre>

<p>i am using CursorAdapter as listActivity adapter.Its showing perfectly with MainList is empty.</p>

<p>My problem is that i want to show more than a textview when MainList is empty. Basically i need custom view(imageview,button etc) to be shown when list is empty.How should i do this.</p>

<p>Thanks</p>
