开发者

Why are my images compressed?

开发者 https://www.devze.com 2022-12-29 12:01 出处:网络
I\'m using layout xml file for the UI. But the images are compressed and the qualities have lo开发者_如何学JAVAst in some level.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消