com.airbnb.epoxy.TextProp 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.StringRes;
/**
* A convenient replacement for {@link ModelProp} when the prop represents text.
*
* This can only be used when the setter parameter is a {@link CharSequence}
*
* This is the same as using {@link ModelProp} with the option {@link
* com.airbnb.epoxy.ModelProp.Option#GenerateStringOverloads}
*/
@Target({ElementType.METHOD, ElementType.FIELD})
@Retention(RetentionPolicy.CLASS)
public @interface TextProp {
@StringRes int defaultRes() default 0;
}