Butterknife - Bind Android views and callbacks to fields and methods.

  •        46

Field and method binding for Android views which uses annotation processing to generate boilerplate code for you. Annotate fields with @BindView and a view ID for Butter Knife to find and automatically cast the corresponding view in your layout. Instead of slow reflection, code is generated to perform the view look-ups. Calling bind delegates to this generated code that you can see and debug.

  • Eliminate findViewById calls by using @BindView on fields.
  • Group multiple views in a list or array. Operate on all of them at once with actions, setters, or properties.
  • Eliminate anonymous inner-classes for listeners by annotating methods with @OnClick and others.
  • Eliminate resource lookups by using resource annotations on fields.

http://jakewharton.github.io/butterknife/
https://github.com/JakeWharton/butterknife

Tags
Implementation
License
Platform

   




Related Projects

MVVM-WPF(+Silverlight 5.0) XAML Markup Dependency Injection Binding Extensions


XAML mark-up extensions for MVVM pattern. Mark-up extensions allow to bind RouteEventHandler, Command and other to targets via Dependency Injection.

HK2 - A light-weight and dynamic dependency injection framework


HK2 is a light-weight and dynamic dependency injection framework. HK2 is an implementation of JSR-330 in a JavaSE environment. JSR-330 defines services and injection points that can be dynamically discovered at runtime and which allow for Inversion of Control (IoC) and dependency injection (DI).

Dependency Injection Service Provider (DISP)


Dependency Injection Service Provider (DISP) is a wrapper or an interface that aim to allow .NET developers use one of the inversion of control (IoC) containers out there such as StructureMap or Ninject from a high level of abstraction, using the same interface and classes wi...

Swinject - Dependency injection framework for Swift with iOS/macOS/Linux


Swinject is a lightweight dependency injection framework for Swift. Dependency injection (DI) is a software design pattern that implements Inversion of Control (IoC) for resolving dependencies. In the pattern, Swinject helps your app split into loosely-coupled components, which can be developed, tested and maintained more easily. Swinject is powered by the Swift generic type system and first class functions to define dependencies of your app simply and fluently.

mortar - A simple library that makes it easy to pair thin views with dedicated controllers, isolated from most of the vagaries of the Activity life cycle


Mortar provides a simplified, composable overlay for the Android lifecycle, to aid in the use of Views as the modular unit of Android applications. It leverages Context#getSystemService to act as an a la carte supplier of services like dependency injection, bundle persistence, and whatever else your app needs to provide itself.One of the most useful services Mortar can provide is its BundleService, which gives any View (or any object with access to the Activity context) safe access to the Activity lifecycle's persistence bundle. For fans of the Model View Presenter pattern, we provide a persisted Presenter class that builds on BundleService. Presenters are completely isolated from View concerns. They're particularly good at surviving configuration changes, weathering the storm as Android destroys your portrait Activity and Views and replaces them with landscape doppelgangers.


StructureMap - A Dependency Injection/Inversion of Control tool for .NET


StructureMap is a feature rich IoC tool with support for interception, object lifecycles and intelligent disposal patterns, open generic types, modular registrations, conventional registration, custom policies, and all the injection pattern support you would expect in a modern .Net IoC container.

Mugen Injection


A lightweight and fast managed IoC (Inversion of Control) and DI (Dependency Injection) with support for constructor, property, field, and method call injection

LogikBug's IoC Container


LogikBug's IoC dependency injection container is very light weight. Finding a dependency injection container to suite my needs seemed rather cumbersome. So, I wrote this DI Container to suite my needs. There are many ways to register types, including scanning assemblies...

AppServices - lightweight framework for IOC and Dependency Injection in SOA


AppServices is a lightweight service container which can inject services into other objects, visual controls or components. It works with .NET Full, .NET Compact and Silverlight (included WP7). It manages automatically the service dependency. Its advantage is declarative confi...

OpenNETCF.IoC Framework


A lightweight managed IoC (Inversion of Control) and DI (Dependency Injection) framework designed for the .NET .Compact Framework but the full framework is supported as well. It supports Registration, construction and even event aggregation in a tiny and wicked fast package. ...

DContainer


DContainer is a common dependency injection adapter for the popular IoC container.

Tiny Container


TinyContainer is a minimal yet powerful Dependency Injection Framework and IOC Container. This was initially written for Silverlight. And we also have a version for .NET 4 and Win Phone 7. And I have future plan for mono

DepIC


Dependency Injection Container with a very simple API.

InversifyJS - A powerful and lightweight inversion of control container for JavaScript & Node


A powerful and lightweight inversion of control container for JavaScript & Node.js apps powered by TypeScript. InversifyJS is a lightweight (4KB) inversion of control (IoC) container for TypeScript and JavaScript apps. An IoC container uses a class constructor to identify and inject its dependencies. InversifyJS has a friendly API and encourages the usage of the best OOP and IoC practices.

ObjectBuilder Dependency Injection Framework


ObjectBuilder is a tool for building dependency injection systems for the .NET platform. It was originally designed by the Microsoft patterns & practices team for use in the Composite UI Application Block and Enterprise Library. ObjectBuilder can be used to create a variety...

Dagger 2 - Compile-time dependency injection framework for both Java and Android


Dagger is a fully static, compile-time dependency injection framework for both Java and Android. It is an adaptation of an earlier version created by Square and now maintained by Google. It eliminates all reflection, and improves code clarity by removing the traditional ObjectGraph/Injector in favor of user-specified @Component interfaces.

feather - Lightweight dependency injection for Java and Android (JSR-330)


Feather is an ultra-lightweight dependency injection (JSR-330) library for Java and Android.

Guice - Lightweight Dependency Injection Framework for Java


Guice (pronounced 'juice') is a lightweight dependency injection framework for Java 6 and above, brought to you by Google. Guice alleviates the need for factories and the use of new in your Java code. Think of Guice's @Inject as the new new. You will still need to write factories in some cases, but your code will not depend directly on them. Your code will be easier to change, unit test and reuse in other contexts.

Radar IoC container


Very simple, fast and easy to use IoC container. Don't have any dependencies on external libraries - just pure .NET 4 Client Profile. Minimal size (~18kB in release build) makes it suitable to use in any project type.