title: set height of imageview as matchparent programmatically
body: <p>I need to set the height of an <strong>imageview</strong> as <strong>matchparent</strong> programatically.if it is a fixed height i know how to set.</p>
  
  <p>but how can i set it as matchparent?  </p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>actually height of the parent layout is dynamic.so i need to make the height of the imageview as the height of parent.</p>