title: android set listview height dynamically
body: <p>i have <code>ExpandableListview</code> inside <code>ScrollView</code> and i know that's not good but i had too, the only solution to show the whole list is by set its height by code using <code>layoutParams</code></p>
  
  <blockquote>
    <p>RelativeLayout.LayoutParams params = new
    RelativeLayout.LayoutParams(LayoutParams.MATCH_PARENT,
    ListViewData.length());</p>
  </blockquote>
  
  <p>this solution is good but i can't figure the right height that i should give in the <code>Params</code>, SO is there a way to know the actual size from the size of the array</p>
  
  <p><strong>Edit:</strong>
  i came up with a solution that everytime i expand a group of the list am gonna change the height to fit with new geight</p>