[android-developers] Wrong Position when using Big Images
Hallo,
i just stumpled over this:
In want to place an Image on the Bottom of the Screen, so i used an
RelativeLayout placed an ImageView in it:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/
android"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<ImageView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true" android:src="@drawable/hand"
android:layout_gravity="bottom"/>
</RelativeLayout>
My Emulator ist API Version 8, with Screen Dimension 480x800. The
Image in the HDPI Folder was 652x652 in 240DPI. If i run it with this
Image (hand) i always get the Image Scaled but it shows up much more
over the Bottom as i would expect. The Image has NO transparent Border
that may would cause this.
When i scale the Image down to apx. width of the Screen (480x480) i
get a result i would expect.
Anybody can explain why Android Layout like this ?
PS: I did not put any other Images of that in the folders "mdpi" or
"ldpi" as alternatives !
best regards,
Jens
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home