[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-3929":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":21,"hasPages":23,"topics":24,"createdAt":10,"pushedAt":10,"updatedAt":25,"readmeContent":26,"aiSummary":27,"trendingCount":16,"starSnapshotCount":16,"syncStatus":18,"lastSyncTime":28,"discoverSource":29},3929,"butterknife","JakeWharton\u002Fbutterknife","JakeWharton","Bind Android views and callbacks to fields and methods.","http:\u002F\u002Fjakewharton.github.io\u002Fbutterknife\u002F",null,"Java",25366,4552,1023,102,0,1,2,45,"Apache License 2.0",false,"master",true,[],"2026-06-12 02:00:56","Butter Knife\n============\n\n**Attention**: This tool is now deprecated. Please switch to\n[view binding](https:\u002F\u002Fdeveloper.android.com\u002Ftopic\u002Flibraries\u002Fview-binding).\nExisting versions will continue to work, obviously, but only critical bug fixes for integration\nwith AGP will be considered. Feature development and general bug fixes have stopped.\n\n![Logo](website\u002Fstatic\u002Flogo.png)\n\nField and method binding for Android views which uses annotation processing to generate boilerplate\ncode for you.\n\n * Eliminate `findViewById` calls by using `@BindView` on fields.\n * Group multiple views in a list or array. Operate on all of them at once with actions,\n   setters, or properties.\n * Eliminate anonymous inner-classes for listeners by annotating methods with `@OnClick` and others.\n * Eliminate resource lookups by using resource annotations on fields.\n\n```java\nclass ExampleActivity extends Activity {\n  @BindView(R.id.user) EditText username;\n  @BindView(R.id.pass) EditText password;\n\n  @BindString(R.string.login_error) String loginErrorMessage;\n\n  @OnClick(R.id.submit) void submit() {\n    \u002F\u002F TODO call server...\n  }\n\n  @Override public void onCreate(Bundle savedInstanceState) {\n    super.onCreate(savedInstanceState);\n    setContentView(R.layout.simple_activity);\n    ButterKnife.bind(this);\n    \u002F\u002F TODO Use fields...\n  }\n}\n```\n\nFor documentation and additional information see [the website][3].\n\n__Remember: A butter knife is like a [dagger][1], only infinitely less sharp.__\n\n\n\nDownload\n--------\n\n```groovy\nandroid {\n  ...\n  \u002F\u002F Butterknife requires Java 8.\n  compileOptions {\n    sourceCompatibility JavaVersion.VERSION_1_8\n    targetCompatibility JavaVersion.VERSION_1_8\n  }\n}\n\ndependencies {\n  implementation 'com.jakewharton:butterknife:10.2.3'\n  annotationProcessor 'com.jakewharton:butterknife-compiler:10.2.3'\n}\n```\n\nIf you are using Kotlin, replace `annotationProcessor` with `kapt`.\n\nSnapshots of the development version are available in [Sonatype's `snapshots` repository][snap].\n\n\n\nLibrary projects\n--------------------\n\nTo use Butter Knife in a library, add the plugin to your `buildscript`:\n\n```groovy\nbuildscript {\n  repositories {\n    mavenCentral()\n    google()\n  }\n  dependencies {\n    classpath 'com.jakewharton:butterknife-gradle-plugin:10.2.3'\n  }\n}\n```\n\nand then apply it in your module:\n\n```groovy\napply plugin: 'com.android.library'\napply plugin: 'com.jakewharton.butterknife'\n```\n\nNow make sure you use `R2` instead of `R` inside all Butter Knife annotations.\n\n```java\nclass ExampleActivity extends Activity {\n  @BindView(R2.id.user) EditText username;\n  @BindView(R2.id.pass) EditText password;\n...\n}\n```\n\n\n\nLicense\n-------\n\n    Copyright 2013 Jake Wharton\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n       http:\u002F\u002Fwww.apache.org\u002Flicenses\u002FLICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n\n\n\n [1]: https:\u002F\u002Fdagger.dev\u002F\n [2]: https:\u002F\u002Fsearch.maven.org\u002Fremote_content?g=com.jakewharton&a=butterknife&v=LATEST\n [3]: http:\u002F\u002Fjakewharton.github.com\u002Fbutterknife\u002F\n [snap]: https:\u002F\u002Foss.sonatype.org\u002Fcontent\u002Frepositories\u002Fsnapshots\u002F\n","Butter Knife 是一个用于Android开发的库，通过注解处理自动生成样板代码来绑定视图和回调。其核心功能包括使用`@BindView`注解消除`findViewById`调用、通过`@OnClick`等注解简化监听器设置以及直接在字段上使用资源注解以减少资源查找。尽管该项目已被官方弃用并推荐转向View Binding，但Butter Knife仍适用于需要快速集成且不打算迁移至最新实践的老项目或小规模应用中。该库支持Java 8，并且可以通过Gradle轻松集成到新旧Android项目里。对于Kotlin用户，则需将`annotationProcessor`替换为`kapt`以启用编译时注解处理。","2026-06-11 02:57:12","top_language"]