【发布时间】:2018-08-07 07:16:09
【问题描述】:
在开发 Android 应用时,我发现我从资产中显示的所有图像都是像素化的。
我正在使用这 2 行来显示它们:
Drawable imageDrawable = Drawable.createFromStream("my_logo.png", null);
imageView.setBackground(imageDrawable);
图像的尺寸为:128/128 或 256/256,并显示在方形 ImageView 中。
有人想保持我的图像质量吗?
【问题讨论】: