Recently, in the study of developing Android annotations, we are trying to use Butterknife. The characteristics of Butterknife are as follows:
(1) powerful and convenient handling of view bindings and click events, simplifying code and improving development efficiency.
(2) Easy to handle the Viewholder binding problem in the adapter of the ListView.
(3) The operation will not affect the efficiency of the app, the use of convenient configuration;
(4) Code thinking clear, readable;
Below I do a simple operation in Eclipse, how to import Butterknife-6.1.0.jar into the Android project for annotated development. The steps are as follows:
[1]. Copy the Butterknife-6.1.0.jar to the project's Libs directory;
[2]. Project Right--->properties-->java compiler-->annotation processing, tick enable project specific settings in the right area. As shown:
[3]. Select the factory Path below annotation processing. Select Add JARs on the right. Find out the Butterknife-6.1.0.jar click Ok,apply under Project Libs. And then determine. :
。
At this point, Butterknife has been configured in Eclipse, and then it's ready to start the code. For the funeral, please listen to tell.
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Set up Butterknife in Eclipse for annotated development steps