title: How to get the width and height of an Image View in android?
body: <p>In my code I have an <code>Image View</code> in my XML layout and I keep changing the source image for this in my code. Now I want to know the width and height of the generated image each time.</p>
  
  <p>I tried using <code>getWidth()</code>, <code>getHeight(),</code> <code>getMeasuredWidth(),</code> and  <code>getMeasuredHeight()</code>, but they all return 0.</p>
  
  <p>How can I get this?</p>