Package com.airbnb.epoxy
Annotation Interface EpoxyDataBindingLayouts
Used to specify a list of databinding layout resources that you want EpoxyModels generated for.
The models will be generated in the same package as this annotation. Every layout must be a valid
databinding layout. The name of the generated model will be based on the layout resource name.
The layouts must not specify a custom databinding class name or package via the class="com.example.CustomClassName" override in the layout xml.
Alternatively you can use EpoxyDataBindingPattern to avoid explicitly declaring each
layout.
-
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionint[]A list of databinding layout resources that should have EpoxyModel's generated for them. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanIf true, any variable whose type does not implement equals and hashcode will have theEpoxyAttribute.Option.DoNotHashbehavior applied to them automatically.
-
Element Details
-
value
@LayoutRes int[] valueA list of databinding layout resources that should have EpoxyModel's generated for them.
-
-
-
enableDoNotHash
boolean enableDoNotHashIf true, any variable whose type does not implement equals and hashcode will have theEpoxyAttribute.Option.DoNotHashbehavior 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
- Default:
- true
-