Androidstudio Utility Plug-in finishing to create sharp artifacts

Source: Internet
Author: User

1.butterknifezelezny1.1. Function description

This Android studio plug-in allows us to use butterknife annotations when the lazy, directly minutes to fix the annotation add, and the whole process is still graphical editable;

1.2. Project Address

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

1.3. How to use

1. Import Butterknife jar (or have added: Compile ' com.jakewharton:butterknife:7.0.0 ' in build.gradle);
2. Add code: Butterknife.bind (this);
3. Right-click the –> generate–>generate butterknife injections on the activity or fragment or Viewholder layout resource code that needs to import the annotations. A selection box similar to the following is generated;
4.Element is the type of view, ID is the ID name of the resource in layout, Variable name is the variable name you quoted in the code, click Confirm.
Specific installation and operation, please visit the official website to see the operation demonstration

2.gsonformat2.1. Function description

Gsonformat is a plugin to help us quickly generate model, so we can save a lot of time writing entity classes based on JSON data.

2.2. Project Address

Https://github.com/zzz40500/GsonFormat

2.3. How to use

1. Create an empty model class first;
2. Use the Generate shortcut key in the entity class –>gsonformat;
3. Jump out of the edit box, enter the JSON data, click OK;
4. You are done.
Specific installation and operation, please visit the official website to see the operation demonstration

3.android-parcelable-intellij-plugin3.1. Function description

There are two implementations of Android, first, the implementation of the serializable interface, this relatively simple, direct declaration is good, the second, the implementation of Parcelable interface, this way is more complex, often need to write more code to achieve, but the efficiency is relatively high, It is still worth recommending this way. With Android parcelable code generator, you can get a complex serial number interface with one click, which is awesome!!!

3.2. Project Address

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

3.3. How to use

1. Right-click the shortcut key using generate in the entity class that you want to instantiate –>parcelable;
2. Select the instance to be serialized;
3. The serialization of one-click generation;
Specific installation and operation, please visit the official website to see the operation demonstration

4.SelectorChapek for Android4.1. Function description

This plugin can automatically generate drawable selector based on resource files. can help us save time for writing each selector.

4.2. Project Address

Https://github.com/inmite/android-selector-chapek

4.3. How to use

1. Right-click the resources folder, for example: ' drawable-xhdpi ' folder;
2. Select ' Generate Android selectors ';
3. The generated selector will be automatically generated in the Drawable folder;
For specific installation rules, please refer to the official website for detailed instructions.

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Androidstudio Utility Plug-in finishing to create sharp artifacts

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.