title: How to make android listview scrollable?
body: <p>I have two listviews, but they don't scroll. How do I correct this? </p>
  
  <p>Here is my <code>layout.xml</code></p>
  
  <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt;
      &lt;ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:fillViewport="true" &gt;
  
          &lt;RelativeLayout
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:background="@drawable/backgrund" &gt;
  
              &lt;!-- Header  Starts --&gt;
  
              &lt;LinearLayout
                  android:id="@+id/header"
                  android:layout_width="fill_parent"
                  android:layout_height="40dip"
                  android:layout_alignParentTop="true"
                  android:background="@layout/header" &gt;
              &lt;/LinearLayout&gt;
  
              &lt;!-- Header Ends --&gt;
              &lt;!-- Footer Start --&gt;
  
              &lt;TextView
                  android:id="@+id/textAD"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_alignBottom="@+id/header"
                  android:layout_alignParentRight="true"
                  android:layout_marginBottom="14dp"
                  android:layout_marginRight="26dp"
                  android:text="Small Text"
                  android:textAppearance="?android:attr/textAppearanceSmall"
                  android:textColor="#FFFFFF" /&gt;
  
              &lt;ImageView
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"
                  android:layout_below="@+id/header"
                  android:layout_gravity="center_horizontal"
                  android:focusable="false"
                  android:paddingBottom="5px"
                  android:paddingTop="10px"
                  android:src="@android:drawable/divider_horizontal_bright" /&gt;
  
              &lt;View
                  android:layout_width="fill_parent"
                  android:layout_height="1dip"
                  android:background="#000000"
                  android:focusable="false" /&gt;
  
              &lt;LinearLayout
                  xmlns:android="http://schemas.android.com/apk/res/android"
                  android:id="@+id/linearLayout1"
                  android:layout_width="match_parent"
                  android:layout_height="match_parent"
                  android:layout_below="@+id/header"
                  android:orientation="vertical" &gt;
  
                  &lt;TextView
                      android:id="@+id/textm"
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:text="Malzemeler" 
                      android:textSize="20dp"
                      android:textColor="#000000"/&gt;
  
                  &lt;EditText
                      android:id="@+id/editaramalzeme"
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:ems="10" /&gt;
  
                  &lt;Button
                      android:id="@+id/btnmalzlist"
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:focusable="false"
                      android:text="Ara" /&gt;
  
                  &lt;ListView
                      android:id="@+id/mylist"
                      android:layout_width="match_parent"
                      android:layout_height="420dp"
                      android:layout_weight="1"
                      android:background="#FFFFFF" &gt;
                  &lt;/ListView&gt;
  
                  &lt;ListView
                      android:id="@+id/listsecili"
                      android:layout_width="wrap_content"
                      android:layout_height="210dp"
                      android:layout_weight="1"
                      android:background="#FFFFFF"  &gt;
                  &lt;/ListView&gt;
  
                  &lt;EditText
                      android:id="@+id/txtNot"
                      android:layout_width="match_parent"
                      android:layout_height="88dp"
                      android:ems="10"
                      android:gravity="top"
                      android:inputType="textMultiLine"
                      android:lines="6"
                      android:singleLine="false" &gt;
  
                      &lt;requestFocus /&gt;
                  &lt;/EditText&gt;
              &lt;/LinearLayout&gt;
  
              &lt;Button
                  android:id="@+id/btnkaydet"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_alignParentLeft="true"
                  android:layout_below="@+id/linearLayout1"
                  android:text="malzeme ekle" /&gt;
  
              &lt;Button
                  android:id="@+id/btntoplugonder"
                  style="?android:attr/buttonStyleSmall"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_alignRight="@+id/textAD"
                  android:layout_below="@+id/btnkaydet"
                  android:text="toplu gonder" /&gt;
          &lt;/RelativeLayout&gt;
  
      &lt;/ScrollView&gt;**
  </code></pre>