Why are my images compressed?
I'm using layout xml file for the UI. But the images are compressed and the qualities have lo开发者_如何学JAVAst 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?
Of course it is.
You say you want some dimensions, but then you say you want to scale it.
So it scales it.
精彩评论