Back to project page roboject.
The source code is released under:
Apache License
If you think the Android project roboject listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package de.akquinet.android.roboject.injectors; /*from w w w .j a va2s .co m*/ import android.app.Activity; import de.akquinet.android.roboject.annotations.InjectLayout; public class LayoutInjector extends ClassInjector<InjectLayout, Activity> { private final Activity managed; public LayoutInjector(Activity managed) { super(managed, InjectLayout.class); this.managed = managed; } @Override protected void handleAnnotation(InjectLayout annotation) { int id = annotation.value(); managed.setContentView(id); } }