title: Setting the number of viewable item count in listView
body: <p>Is there a way to set the viewable item count for a listview? or am I obliged to set the height for the listview?</p>
  
  <p>For instance, I got a list that includes 9 items. I only want 4 of them to appear at first. Then user needs to scroll to see other items.</p>
  
  <p>list_anlam.xml</p>
  
  <pre><code>&lt;LinearLayout 
       android:layout_width="wrap_content"
       android:layout_height="wrap_content"
       android:orientation="vertical" 
       android:layout_margin="1dp"
       android:background="@android:color/darker_gray" &gt;
  
        &lt;TextView
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:text="@string/title_popup_hikayeoku" /&gt;
        &lt;EditText android:id="@+id/kelime_text"
            android:inputType="text"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            /&gt;
  
        &lt;ListView android:id="@+id/list_anlam"
           android:layout_width="match_parent"
          android:layout_height="wrap_content"&gt;&lt;/ListView&gt;
        &lt;Button
            android:id="@+id/button_sec"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:text="@string/button_popup_hikayeoku" /&gt;
  
   &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>list_item.xml : </p>
  
  <pre><code>&lt;TextView xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent" 
      android:textSize="20sp"
      android:padding="10dp" /&gt;
  </code></pre>
  
  <p>Where I fill items into listview : HikayeOkuActivity.java is</p>
  
  <pre><code>String[] anlamlar = null;
                      anlamlar = MainActivity.dbM.ilkAnlamGetir(selectedText);
  
                      ArrayAdapter&lt;String&gt; adapter = new ArrayAdapter&lt;String&gt;(this, R.layout.list_item,anlamlar);
                      anlamList.setAdapter(adapter);
                      popupWindow.showAsDropDown(mainLayout, touchedX,touchedY);
  </code></pre>