Android: ImageView scales up source image

Posted by legr3c on Stack Overflow See other posts from Stack Overflow or by legr3c
Published on 2010-05-30T11:22:31Z Indexed on 2010/05/30 12:42 UTC
Read the original article Hit count: 634

Filed under:
|
|
|
|

I can't seem to get my ImageView to display its source image in its original size. The ImageView looks like this:

   <ImageView 
 android:id="@+id/Logo" 
 android:src="@drawable/logo"
 android:layout_width="wrap_content" 
 android:layout_height="wrap_content"
 >
</ImageView>

The source image is 140 pixels wide, yet on the Nexus One's screen, which is 480 pixels wide it uses up half of the width. Using absolute values in px or dp for the width and height changes nothing. The image also looks very antialiased from the upscaling. Why is this happening and how can I prevent it?

© Stack Overflow or respective owner

Related posts about android

Related posts about size