加载高分辨率图像视图 android
Load high resolution imageview android
我检查了 android ImageView 的许多 scaleType 选项,但所有这些选项都会导致图像质量低下。
我使用 mipmap,据我所知,它会生成许多尺寸的同一图像。
在不将布局设置为 match_parent 的情况下,它会加载图像的最小版本。那么我可以加载更大的 mipmap 大小,如 x-hdpi 或类似的方法来获得更好的图像质量吗?
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="fitCenter"
android:src="@mipmap/logo_word"/>
mipmap 文件夹仅用于放置您的应用程序图标。您使用的任何其他可绘制资源都应像以前一样放置在相关的可绘制文件夹中。
我检查了 android ImageView 的许多 scaleType 选项,但所有这些选项都会导致图像质量低下。
我使用 mipmap,据我所知,它会生成许多尺寸的同一图像。 在不将布局设置为 match_parent 的情况下,它会加载图像的最小版本。那么我可以加载更大的 mipmap 大小,如 x-hdpi 或类似的方法来获得更好的图像质量吗?
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="fitCenter"
android:src="@mipmap/logo_word"/>
mipmap 文件夹仅用于放置您的应用程序图标。您使用的任何其他可绘制资源都应像以前一样放置在相关的可绘制文件夹中。