Imageview position not behaving as expected
<p>I' using full screen and locking to portrait. In the manifest:</p>

<pre><code>android:theme="@android:style/Theme.NoTitleBar.Fullscreen" 
android:screenOrientation="portrait"
</code></pre>

<p>In the layout I have an imageview and two buttons:</p>

<pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" &gt;
&lt;ImageView
    android:id="@+id/imageView1"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:layout_gravity="center_vertical"/&gt;
&lt;Button
    android:id="@+id/button1"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="Button" /&gt;
&lt;Button
    android:id="@+id/button2"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="Button" /&gt;
&lt;/LinearLayout&gt;
</code></pre>

<p>At the start I load my own image into the imageview:</p>

<pre><code>imageView = (ImageView) findViewById(R.id.imageView1); //from .xml 
Drawable newPhoneImage;
newPhoneImage = getResources().getDrawable(R.drawable.phone_on);
imageView.setImageDrawable(newPhoneImage);
</code></pre>

<p>On both my emulators this shows the image at the top of screen as expected.</p>

<p>I then draw up a bitmap and replace the Image:</p>

<pre><code>sBitmap = Bitmap.createBitmap(557, 580,Config.ARGB_8888);
//draw the bimap image
BitmapDrawable nimage;
nimage = new BitmapDrawable(sBitmap);
imageView.setImageDrawable(nimage); 
</code></pre>

<p>On the large emulator(WVGA800 400x800) the image is at the top as expected.</p>

<p>On the small emulator(QVGA 240x320) and on my phone(240x320) the image is 35 pixels down from the top.</p>

<p>Why are they different?</p>

<p>I can scroll the image up:</p>

<pre><code>imageView.scrollTo(0, 35); //this will put image at top
</code></pre>

<p>How can I find this value? Nothing like this will work:</p>

<pre><code>int offset = imageView.getTop();// it just = height of image
</code></pre>

<p>Any help would be appreciated.</p>
