title: 100% height android listview
body: <p>I am just starting to develop android apps. I have a layout question. I want to create the main screen for my app. It is a menu with 7 options, each options would be an icon at the left, a short text and a check at the left (on/off component).</p>
  
  <p>I have written it in a list view element, I have created a simple adapter with this layout:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent" &gt;
  
         &lt;ImageView android:id="@+id/icon"
              android:layout_width="?android:attr/listPreferredItemHeight"
              android:layout_height="match_parent"
              android:layout_alignParentLeft="true"
              android:src="@drawable/ic_action_io"/&gt;
  
         &lt;TextView android:id="@+id/title"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout_toRightOf="@id/icon"
              android:layout_alignParentTop="true"
              android:textAppearance="?android:attr/textAppearanceLarge"
              android:singleLine="true" /&gt;
  
  
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>Menu will have always 7 options, I would like that the listview filled the height of the screen. Each element with the same height. Is it possible that with listview? Or, perhaps would be better making the menu out of a list view?</p>
  
  <p>I have been reading about linear layout and the weight property. Please, could you help me? It is my first layout, I would thank any advice aboput layout I should use.</p>
  
  <p>Thanks a lot, best regards!</p>
  
  <p>P.D: Sorry for my english.</p>