Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/winterDroid/android-drawable-importer-intellij-plugin
Adds an option to IntelliJ to import drawables in different resolutions from AndroidIcons, own "drawable repos" and scale a certain image down/up to the defined resolutions.
https://github.com/winterDroid/android-drawable-importer-intellij-plugin
Last synced: 2 months ago
JSON representation
Adds an option to IntelliJ to import drawables in different resolutions from AndroidIcons, own "drawable repos" and scale a certain image down/up to the defined resolutions.
- Host: GitHub
- URL: https://github.com/winterDroid/android-drawable-importer-intellij-plugin
- Owner: winterDroid
- License: apache-2.0
- Created: 2014-04-07T06:58:28.000Z (almost 11 years ago)
- Default Branch: develop
- Last Pushed: 2018-11-06T10:25:16.000Z (about 6 years ago)
- Last Synced: 2024-08-01T10:16:28.601Z (6 months ago)
- Language: Java
- Size: 145 MB
- Stars: 862
- Watchers: 29
- Forks: 138
- Open Issues: 22
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-android-tools - Android Drawable Importer Plugin - Adds an option to IntelliJ to import drawables in different resolutions from AndroidIcons, own "drawable repos" and scale a certain image down/up to the defined resolutions. (Intellij Plugin)
- awesome-android-tips - android-drawable-importer-intellij-plugin
README
# Android Drawable Importer Plugin
![alt text](src/main/resources/images/menu.png "New menu")
This plugin consists of three main features. You can access them by **right-clicking** anywhere, but **not** on a file, inside an **Android (library) module** under **New**.
## 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 also import Vector Drawables from the Material Icons pack.You can even search for your desired asset by just start typing when the first spinner has focus.
![alt text](src/main/resources/images/icons_importer.png "Icons Import dialog")
![alt text](src/main/resources/images/vector_importer.png "Vector Drawable Importer dialog")
*You can download AndroidIcons [here](http://www.androidicons.com/) and Material Icons [here](https://github.com/google/material-design-icons) for free.*## 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 :)
![alt text](src/main/resources/images/scale.png "Batch Drawable Import dialog")
![alt text](src/main/resources/images/scale_add.png "Batch Drawable Import Add dialog")
![alt text](src/main/resources/images/scale_batch_edit.png "Batch Drawable Import batch edit dialog")## Multisource-Drawable
Ever got a zip with drawables for your Android project by your designer with the following structure?
```
root/
./drawable_ldpi.png
./drawable_mdpi.png
./drawable_hdpi.png
./drawable_xhdpi.png
```
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.
![alt text](src/main/resources/images/multi.png "Multi drawable sources import dialog")
![alt text](src/main/resources/images/multi_zip.png "Multi drawable sources import dialog for ZIP archives")*Hint: When you select an asset, you can also just drag a file from your explorer to the text field and drop it there.*
## Install Instructions (IntelliJ, Android Studio)
**Step 1:**
Open IntelliJ and click on the *Configure* button on the welcome screen.
![Welcome Screen](src/main/resources/images/instructions/welcome.png)
Then click on the *Plugins* button to open the Plugins dialog.
![Welcome Screen - Plugins](src/main/resources/images/instructions/welcome_plugins.png)
If your IntelliJ is already opened or was closed with an open project, go to the *Settings* in the *File* menu on Windows or the *Preferences..* in the *IntelliJ IDEA* menu. Select the *Plugins* option on the left pane.
![Settings](src/main/resources/images/instructions/settings.png)
![Settings - Plugins](src/main/resources/images/instructions/settings_plugins.png)**Step 2:**
Click on the **Browse repositories...** button.
![Plugins](src/main/resources/images/instructions/browse.png)
**Step 3:**
Search for **Android Drawable Importer** and select the plugin from the list. Click on the *Install Plugin* button and verify the selection by pressing *Yes* afterwards.
![Install](src/main/resources/images/instructions/install.png)
![Verify](src/main/resources/images/instructions/verify.png)**Step 4:**
Afterwards click on the *Close* button. If IntelliJ asks you to restart, allow it.
![Restart](src/main/resources/images/instructions/restart.png)
# How to run the repository code
1. Clone
`git clone [email protected]:winterDroid/android-drawable-importer-intellij-plugin.git`
2. Run Gradle Wrapper In project root.
`./gradlew runIdea`# Contribution
[![Build Status](https://travis-ci.org/winterDroid/android-drawable-importer-intellij-plugin.svg)](https://travis-ci.org/winterDroid/android-drawable-importer-intellij-plugin)
1. Fork it
2. Checkout develop branch
`git checkout develop && git pull`
2. Create your feature branch
`git checkout -b my-new-feature`
3. Commit your changes
`git commit -am 'Add some feature'`
4. Squash all commits in your branch together
`git rebase -i develop`
5. Push to the branch
`git push origin my-new-feature`
6. Create new *Pull Request*# License
Copyright 2014 Marc Prengemann
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.