A Butter Knife-inspired view binding library for Android written in Kotlin, now deprecated.
Kotter Knife was a view binding library for Android that provided a Kotlin-specific alternative to Butter Knife. It used Kotlin's property delegation to bind Android views, reducing boilerplate code in activities, fragments, and view holders. The project has been deprecated due to performance issues from allocating objects for each view reference.
Android developers using Kotlin who wanted a concise way to bind views without Butter Knife's annotation processing. It was particularly useful for those working with activities, fragments, dialogs, and recycler view view holders.
Kotter Knife offered a more idiomatic Kotlin approach to view binding compared to Java-based alternatives, using property delegates for cleaner syntax. However, it was deprecated in favor of Android's official view binding due to performance concerns.
View "injection" library for Android.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Uses property delegation for clean, concise view binding, as shown in the README example with `val firstName: TextView by bindView(R.id.first_name)`, reducing boilerplate compared to traditional methods.
Supports optional views with null safety through `bindOptionalView()` and `bindOptionalViews()`, allowing graceful handling of missing layout elements in Kotlin.
Enables binding multiple views into lists with `bindViews()` and `bindOptionalViews()`, reducing repetitive code for related UI elements as demonstrated in the README.
Works across various Android components including Activity, Fragment, Dialog, and ViewHolder, providing flexibility in different scenarios without extra setup.
The library allocates an object for every view reference, leading to unnecessary memory usage and performance degradation, as explicitly admitted in the README deprecation warning.
Marked as deprecated with a strong warning not to use, and no longer available on Maven Central, making it unsuitable for production or new development.
Relies on older support libraries and lacks compatibility with modern Android tools like official view binding or Jetpack Compose, forcing manual dependency adjustments.
Kotterknife is an open-source alternative to the following products: