@Target(value=TYPE)
@Retention(value=CLASS)
public @interface EpoxyDataBindingPattern
EpoxyDataBindingLayouts to avoid having to explicitly list every
databinding layout.
The layouts must not specify a custom databinding class name or package via the class="com.example.CustomClassName" override in the layout xml.
| Modifier and Type | Required Element and Description |
|---|---|
java.lang.String |
layoutPrefix
A string prefix that your databinding layouts start with.
|
java.lang.Class<?> |
rClass
The R class used in this module (eg "com.example.app.R.class").
|
| Modifier and Type | Optional Element and Description |
|---|---|
boolean |
enableDoNotHash
If true, any variable whose type does not implement equals and hashcode will have the
EpoxyAttribute.Option.DoNotHash behavior applied to them automatically. |
public abstract java.lang.Class<?> rClass
public abstract java.lang.String layoutPrefix
For example, if you set this prefix to "view_holder" and you have a "view_holder_header.xml" databinding layout, Epoxy will generate a HeaderBindingModel_ class for that layout.
public abstract boolean enableDoNotHash
EpoxyAttribute.Option.DoNotHash behavior applied to them automatically.
This is generally helpful for listeners - other variables should almost always implement equals and hashcode.
For details on the nuances of this, see https://github.com/airbnb/epoxy/wiki/DoNotHash