How to place both listview and textview in one page in android?
<p>I am displaying a <code>TextView</code> and below that a <code>ListView</code> in one page. My code is:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;

&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:id="@+id/widget"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"&gt;

    &lt;RelativeLayout 
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:id="@+id/widgetlay"
    android:layout_height="fill_parent"&gt;
    &lt;TextView
        android:id="@+id/txt1"
        android:text=""
        android:layout_height="wrap_content"
        android:layout_width="fill_parent"
        &gt;
    &lt;/TextView&gt;
   &lt;/RelativeLayout&gt;


   &lt;ListView
android:layout_width="match_parent"
android:id="@+id/listlist" 
android:layout_height="0dp"
android:layout_weight="1.0"&gt;
&lt;/ListView&gt;


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

<p>Here I am displaying the <code>ListView</code> data dynamically....but in my emulator it is displaying a <code>TextView</code> at the top and then the <code>ListView</code> with scroll...It is not expanding the list and instead it is scrolling with the content which is generated dynamically...Please tell me how to expand the entire <code>ListView</code>....</p>

<p>Thanks in advance</p>
