3 Android Studio plugins for avoiding writing boilerplate codes

Often, it is just annoying to realize that we, Android developers, are stuck at writing tens of hundreds of boilerplate codes that are the same for mostly but we have to write simply because those are just necessary in order for the app to properly work.

As Android development is 30% more expensive than iOS, Android development is not cheap nor way-to-go. We need to save our time polishing and making the app the best, not being stuck and writing boilerplate codes all the time.

I’d like to introduce some very useful Android Studio plugins that just changed my life of Android development, and I will skip explaining all of them in detail, but just list them, as they are well explained on their README files and they are pretty intuitive for use.

1. ButterKnifeZelezny

https://github.com/avast/android-butterknife-zelezny

Avoid your time consuming and writing boilerplate ButterKnife codes like below:

@Bind
SomeView someView....
@Bind
SomeView someView....
@Bind
SomeView someView....

..
ButterKnife.bind(this);

ButterKnifeZelezny will do it for you.

2. Android Material Design Icon Generator Plugin

https://github.com/konifar/android-material-design-icon-generator-plugin

Avoid trying to find basic material icons in the ocean of the Internet, download it locally first and copy&paste.

Android Material Design Icon Generator Plugin allows you to easily find material icons your are looking for and place them into drawables folder with the appropriate sizes you specify.

3. Android Parcelable Intellij Plugin

https://github.com/mcharmas/android-parcelable-intellij-plugin

Avoid writing (ironically) famously-known-as-boilerplate parcelable codes such as

public static final Creator<SomeObject> CREATOR = new Creator<SomeObject>() {
   ...
   ...
}
...

@Override
public int describeContents() {
    return 0;
}
...

yuck…

Instead, use android-parcelable-intellij-plugin and generate all of those boilerplate codes with one click.


If you know other intellij plugins or any useful techniques for Android Development, feel free to leave some comments!