title: imageView.getWidth(); returns screen instead of bitmap width
body: <p>I have an imageview that looks like this </p>
  
  <pre><code> &lt;ImageView
      android:id="@+id/imageView1"
      android:layout_width="wrap_content"
      android:layout_height="fill_parent"
      android:layout_alignTop="@+id/textView3"
      android:layout_centerHorizontal="true"
      android:layout_marginBottom="80dp"
      android:layout_marginTop="40dp"
      android:onClick="Time"
      android:adjustViewBounds="false"
      android:src="@drawable/ic_launcher" /&gt;
  </code></pre>
  
  <p>I'm trying to get the width of the image displayed in the imageview by using</p>
  
  <pre><code>ImageView artCover = (ImageView)findViewById(R.id.imageView1);
  int coverWidth = artCover.getWidth();
  </code></pre>
  
  <p>But the width returned is the same as the screen width and not of the image (when the image width is less then the screen width). If I do </p>
  
  <pre><code>int coverHeight = artCover.getHeight(); 
  </code></pre>
  
  <p>I get the correct height of the image. How can I get the width of the displayed image?</p>