tags:

views:

82

answers:

1

I'm using layout xml file for the UI. But the images are compressed and the qualities have lost in some level.

My code is like this:

<ImageView
    android:layout_width="480px"
    android:layout_height="717px"
    android:layout_x="0px"
    android:layout_y="45px"
    android:scaleType="fitXY"
    android:src="@drawable/e4" />

The drawable is actually 480x717.

What's the problem here? Is it due to the fitXY?

A: 

Of course it is.

You say you want some dimensions, but then you say you want to scale it.

So it scales it.

Lo'oris
I removed the fitXY, but it still lost some qualities. Is there other setting in Android/ImageView could make the image to be shown lose-less?
Johnny
I don't know, sorry
Lo'oris
Try using center as scaleType. Check following link for different scaletypes available :http://developer.android.com/reference/android/widget/ImageView.ScaleType.html
Karan
tried center scaleType. still the same
Johnny