title: How to set ListView Height dynamically onClick inside a custom adapter?
body: <p>This is the situation;
  I've a ListView with custom adapter. Each list item includes a button and a hidden TextView(Visibility=GONE). When we click on the button it displays the hidden textview. 
  Up to this it works perfectly.</p>
  
  <p>Problem is, when the TextView is shown, the height of the ListView should increase accordingly.
  I tried to adjust the height like..</p>
  
  <pre><code>list=(ListView)activity.findViewById(R.id.listView);
  ViewGroup.LayoutParams l= lst.getLayoutParams();
  l.height=l.height+150; //assuming the height of the TextView is 150
  list.setLayoutParams(l);
  </code></pre>
  
  <p>But it doesn't work perfectly. I mean, height is increased, but it messes with the previous portion. Ie; Now when i click on the button, it doesn't show the corresponding TextView. Its shows TextView in some other ListItem.</p>
  
  <p>Please help me to find a solution for this;
  Thanks.</p>
  
  <p><img src="https://i.stack.imgur.com/Ta66G.png" alt="enter image description here"></p>