title: android listview fixed height independent of screen size
body: <p>I want to have a listview for English alphabets and I want this listview to keep fixed and show all the time, I mean I don't want to allow the user to scroll in it, because he will see it all. what should I do to make it shown always and fit all the screen size for all the mobile devices? I tried like this:</p>
  
  <p>ListView</p>
  
  <pre><code>&lt;ListView
              android:divider="#000000"
              android:id="@+id/lv_profile_listview_with_search_alphabets"
              android:layout_width="0dip"
              android:layout_height="fill_parent"
              android:layout_weight="0.1"
               &gt;
          &lt;/ListView&gt;
  </code></pre>
  
  <p>List Item </p>
  
  <pre><code>&lt;TextView
          android:id="@+id/tv_list_item_alphabet_oneAlphabet"
          android:layout_width="fill_parent"
          android:layout_height="0dip"
          android:layout_gravity="center_horizontal"
          android:background="@drawable/alphabet_selector"
          android:gravity="center_horizontal"
          android:textColor="#040404"
          android:textSize="10dip"
          android:typeface="sans" 
          /&gt;
  </code></pre>
  
  <p>But On my device I still have blank area at the button of the screen.
  <p> one of the solution I guess, that I set the height of each list item programatically on my adapter , something like</p>
  
  <pre><code>li.setHeight(ScreenHeight/26);
  </code></pre>
  
  <p>but I don't know how to get the ScreenHeight nor than this is a good way.</p>
  
  <p> any help please </p>