Android Injection Frame Butterknife

Source: Internet
Author: User

Open Source Address: Https://github.com/JakeWharton/butterknife

Reference:

1.http://www.jianshu.com/p/4f7338ef806e

2.http://blog.csdn.net/itjianghuxiaoxiong/article/details/50177549

Butterknife is a compile-time annotation that does not incur a burden at run time, and after the build project you will find that it generates the required code, that is, it does not use reflection or generates code at run time, so it does not cause any performance problems or affect the application speed.

Usage Experience:

1.Activity Butterknife.bind (this), must be in Setcontentview (); After, and after the parent class bind, the subclass does not need to bind

2.Fragment Butterknife.bind (this, mrootview);

3. Property layout cannot be decorated with private or static, otherwise it will be an error

4.setContentView () cannot be implemented by annotations. (Some other annotated frameworks can)

1. Alternative Findviewbyid ()

2. Setting up Monitoring

Android Injection Frame Butterknife

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.