com.airbnb.epoxy.EpoxyDataBindingLayouts Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of epoxy-annotations Show documentation
Show all versions of epoxy-annotations Show documentation
Epoxy is a system for composing complex screens with a ReyclerView in Android.
package com.airbnb.epoxy;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import androidx.annotation.LayoutRes;
/**
* 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 {@link EpoxyDataBindingPattern} to avoid explicitly declaring each
* layout.
*/
@Target(ElementType.PACKAGE)
@Retention(RetentionPolicy.CLASS)
public @interface EpoxyDataBindingLayouts {
/** A list of databinding layout resources that should have EpoxyModel's generated for them. */
@LayoutRes int[] value();
}