简体   繁体   中英

How to import high resolution image to android studio?

So whenever I import an image as an image asset it is always blurry. When asked what type of asset is it I always select launcher. (Because thats the only way.)

I'm using the drawable as part of a selector, one image when pressed and another when not. Is there another way I can put an image in android studio?

Use Draw 9-patch tool to create bitmap images that automatically resize to accommodate the contents of the view and the size of the screen.

You can get this tool from your Android SDK sdk/tools directory

http://developer.android.com/tools/help/draw9patch.html

Note : I You want to put image according to device resolution add your image to these folders hdpi, xhdpi ,xxhdpi

您可以将所有分辨率的图像放入Mipmap中的不同文件夹中,例如hdpi,xhdpi,xxhdpi,然后使用它

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM