setEmptyView() using inflated view doesn't work
<p>i have a TabHost with 3 tabs, each holds a list to which i want to attach an empty-view, shown when no items exists. The layout goes like this:
</p>

<pre><code>&lt;TabHost xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@android:id/tabhost" android:layout_width="fill_parent"
    android:layout_height="fill_parent"&gt;
    &lt;LinearLayout android:orientation="vertical"
        android:layout_width="fill_parent" android:layout_height="fill_parent"
        android:padding="5dp"&gt;
        &lt;TabWidget android:id="@android:id/tabs"
            android:layout_width="fill_parent" android:layout_height="wrap_content" /&gt;
        &lt;FrameLayout android:id="@android:id/tabcontent"
            android:layout_width="fill_parent" android:layout_height="fill_parent"
            android:padding="5dp"&gt;
            &lt;LinearLayout android:layout_height="fill_parent"
                android:layout_width="fill_parent"&gt;
                &lt;ListView android:id="@+id/tab_all_list"
                    android:layout_width="fill_parent" android:layout_height="fill_parent"&gt;&lt;/ListView&gt;
                &lt;ListView android:id="@+id/tab_call_list"
                    android:layout_width="fill_parent" android:layout_height="fill_parent"&gt;
                &lt;/ListView&gt;
                &lt;ListView android:id="@+id/tab_sms_list"
                    android:layout_width="fill_parent" android:layout_height="fill_parent"&gt;
                &lt;/ListView&gt;
                &lt;LinearLayout android:orientation="vertical"
                    android:id="@+id/empty_list_view" android:layout_width="fill_parent"
                    android:layout_height="fill_parent" android:visibility="gone"
                    android:gravity="center"&gt;
                    &lt;ImageView android:layout_width="wrap_content"
                        android:layout_height="wrap_content" android:background="@drawable/location_waternark"&gt;&lt;/ImageView&gt;
                    &lt;TextView android:text="@string/empty_action_list_text"
                        android:layout_width="wrap_content" android:layout_height="wrap_content"&gt;
                    &lt;/TextView&gt;
                &lt;/LinearLayout&gt;
            &lt;/LinearLayout&gt;
        &lt;/FrameLayout&gt;
    &lt;/LinearLayout&gt;
&lt;/TabHost&gt;
</code></pre>

<p>And in code, i set the empty-view like this for each ListView (shown once for brevity):</p>

<pre><code>ListView listView = (ListView) findViewById(R.id.tab_all_list);
listView.setEmptyView(findViewById(R.id.empty_list_view));
</code></pre>

<p>Still, no empty-view is shown when the adapter attached to the list has no items.
Does it have anything to do with view-heirarchies or something?</p>
