Annotation Type EpoxyDataBindingLayouts


  • @Target(TYPE)
    @Retention(CLASS)
    public @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 Elements 
      Modifier and Type Required Element Description
      int[] value
      A list of databinding layout resources that should have EpoxyModel's generated for them.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element 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.
    • Element Detail

      • value

        @LayoutRes
        int[] value
        A list of databinding layout resources that should have EpoxyModel's generated for them.
      • enableDoNotHash

        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.

        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