How to resize Icons & Images easily in Android Studio

How to resize Icons & Images easily in Android Studio

UPDATE [May 25th, 2020]: The newer version of the ADI plugin is compatible with Android Studio 3.6 and above

In this tutorial, I’m going to show you how easily you can resize the icons and images for every screen size (hdpi,mdpi,xhdpi e.t.c) using the plugin Android Drawable Importer.

Installing the plugin

Download the installation zip from here, open your Android Studio and go Android Studio > Preferences… (Mac OS) or File > Preferences… (Windows)

In the new window, choose Plugins from the left column > press on the little gear icon and select Install Plugin from Disk…

Select the zip file you downloaded before, and press Open

After the installation, press Restart IDE

Using the plugin

To use the plugin, all you need is the icon in the largest size, for example, if you want to add an icon on the top right of your activity, the size of this icon needs to be 192×192 pixels to support the largest screen(xxxhdpi).

Go to the drawable folder (or whatever folder you want to put it in), and right click > New > Batch Drawable Import

Press the + button

Select your image

In the new window, choose XXXHDPI as Source-Resolution and press OK

and that’s it!

Did you find this tutorial helpful?



If you have any questions, please feel free to leave a comment below

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments