{"id":13541948,"url":"https://github.com/winterDroid/android-drawable-importer-intellij-plugin","last_synced_at":"2025-04-02T09:33:16.078Z","repository":{"id":15769773,"uuid":"18508708","full_name":"winterDroid/android-drawable-importer-intellij-plugin","owner":"winterDroid","description":"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.","archived":false,"fork":false,"pushed_at":"2018-11-06T10:25:16.000Z","size":152351,"stargazers_count":862,"open_issues_count":22,"forks_count":137,"subscribers_count":29,"default_branch":"develop","last_synced_at":"2024-11-03T07:33:02.512Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/winterDroid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-04-07T06:58:28.000Z","updated_at":"2024-11-02T04:50:20.000Z","dependencies_parsed_at":"2022-08-25T14:12:14.951Z","dependency_job_id":null,"html_url":"https://github.com/winterDroid/android-drawable-importer-intellij-plugin","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winterDroid%2Fandroid-drawable-importer-intellij-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winterDroid%2Fandroid-drawable-importer-intellij-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winterDroid%2Fandroid-drawable-importer-intellij-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winterDroid%2Fandroid-drawable-importer-intellij-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/winterDroid","download_url":"https://codeload.github.com/winterDroid/android-drawable-importer-intellij-plugin/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246789018,"owners_count":20834216,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T10:00:59.262Z","updated_at":"2025-04-02T09:33:11.067Z","avatar_url":"https://github.com/winterDroid.png","language":"Java","funding_links":[],"categories":["Java","Android Studio","Intellij Plugin"],"sub_categories":["Plugins"],"readme":"# Android Drawable Importer Plugin\n\n![alt text](src/main/resources/images/menu.png \"New menu\")\n\nThis 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**.\n\n## AndroidIcons and Material Icons Drawable Import\nYou are able to select the asset, specify your color, change the target resource name and select all the resolutions you want to import.  \n\nAll the missing folders will be created automatically. If there are already drawables with the same name, you will be warned.\nYou can also import Vector Drawables from the Material Icons pack.\n\nYou can even search for your desired asset by just start typing when the first spinner has focus.\n   \n![alt text](src/main/resources/images/icons_importer.png \"Icons Import dialog\")\n![alt text](src/main/resources/images/vector_importer.png \"Vector Drawable Importer dialog\")\n   \n*You can download AndroidIcons [here](http://www.androidicons.com/) and Material Icons [here](https://github.com/google/material-design-icons) for free.*\n\n## Batch Drawable Import  \nSelect 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.  \n\nThis 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 :)  \n   \n![alt text](src/main/resources/images/scale.png \"Batch Drawable Import dialog\")\n![alt text](src/main/resources/images/scale_add.png \"Batch Drawable Import Add dialog\")\n![alt text](src/main/resources/images/scale_batch_edit.png \"Batch Drawable Import batch edit dialog\")\n\n## Multisource-Drawable\nEver got a zip with drawables for your Android project by your designer with the following structure?  \n   \n```\n  root/\n       ./drawable_ldpi.png\n       ./drawable_mdpi.png\n       ./drawable_hdpi.png\n       ./drawable_xhdpi.png\n```\n            \nNo 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.\nOr even easier, you can select the whole zip, and this plugin will auto extract the asset to the best matching folder.\n   \n![alt text](src/main/resources/images/multi.png \"Multi drawable sources import dialog\")\n![alt text](src/main/resources/images/multi_zip.png \"Multi drawable sources import dialog for ZIP archives\")\n\n*Hint: When you select an asset, you can also just drag a file from your explorer to the text field and drop it there.*\n\n## Install Instructions (IntelliJ, Android Studio)\n\n**Step 1:**\n\nOpen IntelliJ and click on the *Configure* button on the welcome screen.\n\n![Welcome Screen](src/main/resources/images/instructions/welcome.png)\n\nThen click on the *Plugins* button to open the Plugins dialog.\n\n![Welcome Screen - Plugins](src/main/resources/images/instructions/welcome_plugins.png)\n\nIf 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.\n\n![Settings](src/main/resources/images/instructions/settings.png)\n![Settings - Plugins](src/main/resources/images/instructions/settings_plugins.png)\n\n**Step 2:**\n\nClick on the **Browse repositories...** button.\n\n![Plugins](src/main/resources/images/instructions/browse.png)\n\n**Step 3:**\n\nSearch 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.\n\n![Install](src/main/resources/images/instructions/install.png)\n![Verify](src/main/resources/images/instructions/verify.png)\n\n**Step 4:**\n\nAfterwards click on the *Close* button. If IntelliJ asks you to restart, allow it.\n\n![Restart](src/main/resources/images/instructions/restart.png)\n\n# How to run the repository code\n\n1. Clone\n  `git clone git@github.com:winterDroid/android-drawable-importer-intellij-plugin.git`\n2. Run Gradle Wrapper In project root.\n  `./gradlew runIdea`\n\n# Contribution\n\n[![Build Status](https://travis-ci.org/winterDroid/android-drawable-importer-intellij-plugin.svg)](https://travis-ci.org/winterDroid/android-drawable-importer-intellij-plugin)\n\n1. Fork it\n2. Checkout develop branch\n  `git checkout develop \u0026\u0026 git pull`\n2. Create your feature branch \n  `git checkout -b my-new-feature`\n3. Commit your changes \n  `git commit -am 'Add some feature'`\n4. Squash all commits in your branch together \n  `git rebase -i develop`\n5. Push to the branch \n  `git push origin my-new-feature`\n6. Create new *Pull Request*\n\n# License\n\nCopyright 2014 Marc Prengemann\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FwinterDroid%2Fandroid-drawable-importer-intellij-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FwinterDroid%2Fandroid-drawable-importer-intellij-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FwinterDroid%2Fandroid-drawable-importer-intellij-plugin/lists"}