@Target(value=TYPE)
@Retention(value=CLASS)
public @interface EpoxyModelClass
| Modifier and Type | Optional Element and Description |
|---|---|
int |
layout
A layout resource that should be used as the default layout for the model.
|
boolean |
useLayoutOverloads
If true, any layout file name that has
layout() as a prefix will be included as a
method on the generated model. |
@LayoutRes public abstract int layout
public abstract boolean useLayoutOverloads
layout() as a prefix will be included as a
method on the generated model.
For example, if the layout is "R.layout.my_view" then any layouts in the form of "R.layout.my_view_*" will result in a generated method like "with*Layout" that will apply that other layout instead of the default.