Problem using setEmptyView on a ListActivity
<p>I have the following setup, and the empty view text doesn't show up...</p>

<pre><code>protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
            getListView().setEmptyView(findViewById(R.id.empty));
    getListView().setTextFilterEnabled(true);

    setListAdapter(null);// to have empty list
}
</code></pre>

<p>The layout file is:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;LinearLayout android:id="@+id/myScrollLayout"
    android:layout_width="fill_parent" android:layout_height="fill_parent"
    android:orientation="vertical" xmlns:android="http://schemas.android.com/apk/res/android"&gt;
    &lt;FrameLayout android:layout_width="fill_parent"
        android:layout_height="0dip" android:layout_weight="1"&gt;
        &lt;ListView android:id="@android:id/list" android:layout_width="fill_parent"
            android:layout_height="fill_parent" android:drawSelectorOnTop="false" /&gt;

        &lt;!-- Here is the view to show if the list is emtpy --&gt;
        &lt;ScrollView
            android:id="@android:id/empty" android:layout_width="fill_parent"
            android:layout_height="fill_parent"&gt;
            &lt;TextView android:id="@+id/emptyText" android:layout_width="fill_parent"
                android:layout_height="fill_parent" android:text="@string/contact_empty_help"
                android:textSize="20sp" android:textColor="?android:attr/textColorSecondary"
                android:paddingLeft="10dip" android:paddingRight="10dip"
                android:paddingTop="10dip" android:lineSpacingMultiplier="0.92" /&gt;
        &lt;/ScrollView&gt;
    &lt;/FrameLayout&gt;
&lt;/LinearLayout&gt;
</code></pre>

<p>String is defined as:</p>

<pre><code>&lt;string name="contact_empty_help"&gt;"You don't have any contacts to display.\n\nTo add contacts, you have to:\n
        \n&lt;li&gt;&lt;font fgcolor="#ffffffff"&gt;Go to &lt;b&gt;Contacts&lt;/b&gt;&lt;/font&gt; application to create new contacts\n&lt;/li&gt;
        \n&lt;li&gt;&lt;font fgcolor="#ffffffff"&gt;&lt;b&gt;Import from VCF file&lt;/b&gt;&lt;/font&gt;, this is available in Contacts menu, the file most be on the root of the SD card\n&lt;/li&gt;"
        &lt;/string&gt;
</code></pre>

<p>Since the list is empty, it should show me the text defined. I followed the example from the List8  </p>

<p><a href="http://developer.android.com/intl/de/resources/samples/ApiDemos/src/com/example/android/apis/view/List8.html" rel="nofollow">http://developer.android.com/intl/de/resources/samples/ApiDemos/src/com/example/android/apis/view/List8.html</a><br>
<a href="http://developer.android.com/intl/de/resources/samples/ApiDemos/res/layout/list_8.xml" rel="nofollow">http://developer.android.com/intl/de/resources/samples/ApiDemos/res/layout/list_8.xml</a></p>
