for Google Android
Version 0.1.2

About

Transfuse is a Java Dependency Injection (DI) and integration library geared specifically for the Google Android API.

There are several key features that make Transfuse a great framework to use with Android:

All of these features help eliminate boilerplate plumbing code and make Android applications much easier to write.

Example

Using Transfuse, an Android Activity looks like the following:

// Example Transfuse Activity
@Activity(label = "@string/app_name")
@Layout(R.layout.main)
public class HelloTransfuse {

    @Inject @View(R.id.textview)
    private TextView textView;

    @Inject @Resource(R.string.hello)
    private String helloText;

    @OnCreate
    public void hello() {
        textView.setText(helloText);
    }
}

Read more about the features in the Documentation section.

New to the library or Android? Visit the Getting Started section.

Download

Try Transfuse by downloading from Maven Central,

via git:

git clone git@github.com:johncarl81/transfuse.git

or via Maven:

<dependency>
    <groupId>org.androidtransfuse</groupId>
    <artifactId>transfuse</artifactId>
    <version>0.1.2</version>
    <scope>provided</scope>
</dependency>
<dependency>
    <groupId>org.androidtransfuse</groupId>
    <artifactId>transfuse-api</artifactId>
    <version>0.1.2</version>
</dependency>
Fork me on GitHub