Annotation Interface TextProp


@Target({METHOD,FIELD}) @Retention(CLASS) public @interface TextProp
A convenient replacement for ModelProp when the prop represents text.

This can only be used when the setter parameter is a CharSequence

This is the same as using ModelProp with the option ModelProp.Option.GenerateStringOverloads

  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
     
  • Element Details

    • defaultRes

      @StringRes int defaultRes
      Default:
      0