Why are my images compressed?

I am using layout xml file for UI. But images are compressed and quality is lost at some level.

My code looks 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" />

      

In fact deduced 480x717

.

What is the problem? Is this related to fitXY?

+2


a source to share


1 answer


Of course it is.

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



So it scales it up.

0


a source







All Articles