Interface AutoTheme<T extends AutoTheme<T>>

Type Parameters:
T - The type of the dynamic theme.
All Superinterfaces:
BaseTheme<T>
All Known Implementing Classes:
AppTheme, AppWidgetTheme

public interface AutoTheme<T extends AutoTheme<T>> extends BaseTheme<T>
A BaseTheme to implement the auto theme.
  • Method Summary

    Modifier and Type
    Method
    Description
    Auto generate tint or inverse colors according to the base colors.
    autoGenerateColors(boolean tint, boolean inverse)
    Auto generate tint or inverse colors according to the base colors.

    Methods inherited from interface com.pranavpandey.android.dynamic.theme.base.BaseTheme

    isHost, setHost
  • Method Details

    • autoGenerateColors

      @NonNull T autoGenerateColors(boolean tint, boolean inverse)
      Auto generate tint or inverse colors according to the base colors. They can be set individually by calling the appropriate methods.
      Parameters:
      tint - true to generate tint colors.
      inverse - true to generate inverse colors.
      Returns:
      The AutoTheme object to allow for chaining of calls to set methods.
    • autoGenerateColors

      @NonNull T autoGenerateColors()
      Auto generate tint or inverse colors according to the base colors. They can be set individually by calling the appropriate methods.
      Returns:
      The AutoTheme object to allow for chaining of calls to set methods.
      See Also: