Android Drawable Importer
This plugin consists of three main features. You can access them by a right-click anywhere, but
not on a file, inside an Android module under New.
1. AndroidIcons and Material Icons Drawable Import
You are able to select the asset, specify your color, change the target resource name and select all the resolutions you want to import.
All the missing folders will be created automatically. If there are already drawables with the same name, you will be warned. You can even search for your desired asset by just start typing when the first spinner has focus.
Since Material Icons provide also Vector Drawables, those can be imported now as well!
2. Batch Drawable Import
Select assets (or a whole folder) and specify the source resolutions. You can change the source size of every image as well. Specify all resolutions, to which it should be resized to.
This works also with 9-Patch-Images. But take care: sometimes it's necessary to remove / add the one or other "pixel" in the 9-Patch-Editor. But just give it a try :)
Ever got a zip with drawables for your Android project by your designer with the following structure?
No problem! Now you can just select for every resolution a different asset, specify one name for them, and the rest is done by the plugin.
Or even easier, you can select the whole zip, and this plugin will auto extract the asset to the best matching folder.
Hint: When you select an asset, you can also just drag a file from your explorer to the text field and drop it there.
Recent change notes
- Upgrade to Material Icons 2.2.0
- Added support for Vector Drawable Import from Material Icons
- Removes resolution from filename if imported from Zip archive
- Fixed issue with Android Studio 1.5