GithubHelp home page GithubHelp logo

colinger / android-drawable-importer-intellij-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from winterdroid/android-drawable-importer-intellij-plugin

0.0 1.0 0.0 28.75 MB

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.

License: Apache License 2.0

Java 100.00%

android-drawable-importer-intellij-plugin's Introduction

Android Drawable Importer Plugin

alt text

This plugin consists of 4 main features. You can access them by a right-click anywhere, but not on a file, inside an Android module under New.

  1. AndroidIcons 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.
    alt text

    You can download AndroidIcons here for free: http://www.androidicons.com/

  2. Material Icons Drawable Import
    This feature offers basically the same like the AndroidIcons import. You are able to select the asset by category, specify the color, change the target resource name and select all the resolutions you want to import.

    alt text

    You can download Material Icons here for free: https://github.com/google/material-design-icons/releases

  3. Scaled Drawable
    Select an asset and specify the resolution of it. If you want to scale the to be imported image as well, you should select other and then fill out the target resolution and the target width / height. Then you can specify all the resolutions, to which the drawable should be resized to.
    This works also with 9-Patch-Images. But take care: sometimes it's necessary to remove / add about one "pixel" in the 9-Patch-Editor. But just try it :)

    alt text

  4. 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.

    alt text

Hint: When you select an asset, you can also just drag a file from your finder / explorer to the text field and drop it there.

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 at

http://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.

android-drawable-importer-intellij-plugin's People

Contributors

winterdroid avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.