Interface DynamicErrorWidget

All Superinterfaces:
BaseWidget, DynamicWidget
All Known Implementing Classes:
DynamicTextInputLayout

public interface DynamicErrorWidget extends DynamicWidget
Interface to create text widgets and tint their error color according to the DynamicTheme.
  • Method Details

    • getErrorColorType

      int getErrorColorType()
      Returns the error color type applied to this widget.
      Returns:
      The error color type applied to this widget.
      See Also:
    • setErrorColorType

      void setErrorColorType(int errorColorType)
      Set the error color type to this widget.
      Parameters:
      errorColorType - Link color type for this widget.
      See Also:
    • getErrorColor

      @ColorInt int getErrorColor(boolean resolve)
      Returns the value of error color applied to this widget.
      Parameters:
      resolve - true to resolve the error color applied to this widget.
      Returns:
      The value of error color applied to this widget.
    • getErrorColor

      @ColorInt int getErrorColor()
      Returns the value of error color applied to this widget.
      Returns:
      The value of error color applied to this widget.
    • setErrorColor

      void setErrorColor(@ColorInt int errorColor)
      Set the value of error color for this widget.
      Parameters:
      errorColor - Link color for this widget.
    • setErrorColor

      void setErrorColor()
      Set error color for this widget according to the supplied values.

      Generally, it should be a tint color so that link will be visible on this widget background.