How to resize Icons & Images easily in Android Studio

How to resize Icons & Images easily in Android Studio

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

To install the Android Drawable Importer plugin, 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 > choose the Marketplace tab and type ‘android drawable importer’ in the search field and press Enter

Press Install

After the installation has completed, 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!

If you have any questions feel free to DM me on Twitter @johncodeos or leave a comment below!

Leave a Reply

avatar
  Subscribe  
Notify of

Follow me

Newsletter

Subcribe for weekly emails! Get my posts of the week right in your inbox!