Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/avast/android-butterknife-zelezny
Android Studio plug-in for generating ButterKnife injections from selected layout XML.
https://github.com/avast/android-butterknife-zelezny
Last synced: 4 months ago
JSON representation
Android Studio plug-in for generating ButterKnife injections from selected layout XML.
- Host: GitHub
- URL: https://github.com/avast/android-butterknife-zelezny
- Owner: avast
- License: apache-2.0
- Archived: true
- Created: 2013-12-23T14:24:08.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2018-02-26T08:49:44.000Z (almost 7 years ago)
- Last Synced: 2024-09-22T06:02:50.472Z (4 months ago)
- Language: Java
- Size: 730 KB
- Stars: 3,380
- Watchers: 159
- Forks: 413
- Open Issues: 54
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-android-tools - ButterKnifeZelezny - Simple plug-in for Android Studio/IDEA that allows one-click creation of Butterknife view injections. (Intellij Plugin)
- awesome-android-tips - android-butterknife-zelezny - in for generating ButterKnife injections from selected layout XML (Android Studio / Plugins)
README
# ButterKnifeZelezny
Simple plug-in for Android Studio/IDEA that allows one-click creation of [Butterknife](https://github.com/JakeWharton/butterknife) view injections.
## How to install
- in Android Studio: go to `Preferences → Plugins → Browse repositories` and search for `ButterKnife Zelezny`
_or_
- [download it](http://plugins.jetbrains.com/plugin/7369) and install via `Preferences → Plugins → Install plugin from disk`
## How to use it
![](img/zelezny_animated.gif)
1. Make sure you have latest [Butterknife](https://github.com/JakeWharton/butterknife) lib on your classpath
2. Right click on usage of desired layout reference (e.g. R.layout.main in your Activity or Fragment), then `Generate` and `Generate ButterKnife Injections`
3. Pick injections you want, you also have an option to create ViewHolder for adapters.
4. Click `Confirm` and enjoy injections in your code with no work!## Contributing
Pull requests are welcomed!
- make sure you stick to [our coding style](/code-formatting-config.xml).
- follow [Getting Started with Plugin Development](http://confluence.jetbrains.com/display/IDEADEV/Getting+Started+with+Plugin+Development)
- make sure you have Java 6 installed if you want to publish it in the plugin repository## Common issue: The plugin is not working after I updated to new Android Studio
- AS promts you to update plugins after update, you need to update them before using
- Make sure you have Butterknife on your classpath
- Make sure that your cursor is placed on a layout ID in a class having one of these types: Activity, Fragment, custom View or Adapter## Why 'Zelezny'?
[Jan Železný](http://en.wikipedia.org/wiki/Jan_%C5%BDelezn%C3%BD) is a famous Czech javelin thrower, Olympic champion and world record holder. With Zelezny's javelin, your butter knife will be much sharper!
See [**our other Czech personalities**](http://inmite.github.io) who help with [#AndroidDev](https://plus.google.com/s/%23AndroidDev).