Android Studio Plugin

Source: Internet
Author: User
Tags log log

1, Butterknife Zelezny
Butterknife annotation generator, very easy to use, use Butterknife blessed!
Compile ' com.jakewharton:butterknife:7.0.1 '

2, Selectorchapek
Designers to provide us with all kinds of resources, each button to write a selector is not very troublesome? So this plug-in to solve this problem, you only need to do is to tell the designers to follow the code named just fine, the other one button to fix. After naming in different states (normal, pressed), right-click File tree generate Android selectors see Inmite/android-selector-chapek GitHub.
Mapping

File name Suffixdrawable State
_normal (default state)
_pressedstate_pressed
_focusedstate_focused
_disabledstate_enabled (False)
_checkedstate_checked
_selectedstate_selected
_hoveredstate_hovered
_checkablestate_checkable
_activatedstate_activated
_windowfocusedstate_window_focused

3, Gsonformat
Most server-side APIs are now returned in JSON data format, and the client needs to generate the corresponding entity classes based on the API interface, which automates the process and uses it quickly.

4. Android parcelable Code Generator
There are two ways to serialize in Android, which is to implement the Serializable interface and the Parcelable interface, but it is recommended to use parcelable in Android, but this is more cumbersome than the serializable approach. Then with this plugin everything is OK.

5, Leakcanary--Non-plug-in
It is highly recommended to help you detect memory leaks conveniently during the development phase, which is easier and easier to use.

English is not good here have Comrade Lei Feng translation of Chinese version leakcanary Chinese use instructions

6.Android Postfix Completion
Code can be quickly completed by suffix
. Toast Create and Show Toast Toast.maketext (context, expr, toast.length_short). Show ();
. log log log.d ("Log", expr);
. LOGD If Buildconfig.debug is true, Log message. LOG.D ("Log", expr);
. Find Typed Findview (viewtype) Findviewbyid (expr);
. isemp isEmpty Textutils.isempty (expr);
. VG? View.VISIBLE:View.GONE; (expr)? View.VISIBLE:View.GONE

7.Lifecycle Sorter
The life cycle method location can be sorted according to activity or fragment life cycle, shortcut CTRL + ALT + K

8.CodeGlance
Can be used to quickly locate the code, see a lot of editors have this feature, just think of Android studio to find the next, and really found

Android Studio Plugin

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.