@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface ActivityView
ActivityView should be used on android.support.v7.app.AppCompatActivity classes
to enable usage of EasyMVP.
Here is an example:
@ActivityView(presenter = MyPresenter.class, layout = R.layout.my_activity)
public class MyActivity extends AppCompatActivity implement MyView {
//...
}
Presenter| Modifier and Type | Required Element and Description |
|---|---|
java.lang.Class<? extends Presenter> |
presenter |
| Modifier and Type | Optional Element and Description |
|---|---|
int |
layout
The R.layout.* field which refer to the layout, so there is no need to call
setContentView(R.layout.youLayout. |
public abstract java.lang.Class<? extends Presenter> presenter