title: How to get item height of ListView without using OnItemClickListener?
body: <p>I use this piece of code to vertically center selected item of ListView;</p>
  
  <pre><code>@Override
  public void onItemClick(AdapterView&lt;?&gt; adapter, View v, int position, long id) {
      m_listView.smoothScrollToPositionFromTop(position, (m_listView.getHeight() - v.getHeight()) / 2, 100);
  }
  </code></pre>
  
  <p>There is no problem with this. Problem is I can't center the default selected item because I can't get neither ListView height nor item height.</p>
  
  <p>What I tried;</p>
  
  <ul>
  <li>Creating views with <code>Inflater</code> (returns 0 as height)</li>
  <li>Running <code>performClick()</code> method on default selected item (does nothing, throws no exception)</li>
  </ul>
  
  <p>So what can I do?</p>
  
  <p>Note: Item heights are equal.</p>