Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/image/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何将高分辨率图像导入android studio?_Android_Image_Android Studio_Assets - Fatal编程技术网

如何将高分辨率图像导入android studio?

如何将高分辨率图像导入android studio?,android,image,android-studio,assets,Android,Image,Android Studio,Assets,因此,每当我将图像作为图像资源导入时,它总是模糊的。当被问到它是什么类型的资产时,我总是选择launcher。(因为这是唯一的办法。) 我使用的是可绘制图像作为选择器的一部分,按下时一个图像,不按下时另一个图像。有没有其他方法可以将图像放入android studio?您可以将所有分辨率的图像放入不同文件夹(如hdpi、xhdpi、xxhdpi)中的Mipmap中,您可以使用它来创建位图图像,该图像会自动调整大小,以适应视图内容和屏幕大小 您可以从Android SDK/tools目录获取此工具

因此,每当我将图像作为图像资源导入时,它总是模糊的。当被问到它是什么类型的资产时,我总是选择launcher。(因为这是唯一的办法。)


我使用的是可绘制图像作为选择器的一部分,按下时一个图像,不按下时另一个图像。有没有其他方法可以将图像放入android studio?

您可以将所有分辨率的图像放入不同文件夹(如hdpi、xhdpi、xxhdpi)中的Mipmap中,您可以使用它来创建位图图像,该图像会自动调整大小,以适应视图内容和屏幕大小

您可以从Android SDK/tools目录获取此工具

注意:我想根据设备分辨率将图像添加到这些文件夹hdpi、xhdpi、xxhdpi