Interface CornerTheme<T extends CornerTheme<T>>

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

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

    Modifier and Type
    Method
    Description
    int
    Returns the corner size used by this theme in pixels.
    int
    getCornerRadius(boolean resolve)
    Returns the corner size used by this theme in pixels.
    int
    Returns the corner size used by this theme in dips.
    int
    getCornerSize(boolean resolve)
    Returns the corner size used by this theme in dips.
    setCornerRadius(int cornerRadius)
    Set the corner size used by this theme.
    setCornerSize(float cornerSize)
    Set the corner size used by this theme.

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

    isHost, setHost
  • Method Details

    • getCornerRadius

      int getCornerRadius(boolean resolve)
      Returns the corner size used by this theme in pixels.
      Parameters:
      resolve - true to resolve auto corner size.
      Returns:
      The corner size used by this theme in pixels.
    • getCornerRadius

      int getCornerRadius()
      Returns the corner size used by this theme in pixels.
      Returns:
      The corner size used by this theme in pixels.
    • setCornerRadius

      @NonNull T setCornerRadius(int cornerRadius)
      Set the corner size used by this theme.
      Parameters:
      cornerRadius - The corner size to be set in pixels.
      Returns:
      The CornerTheme object to allow for chaining of calls to set methods.
    • getCornerSize

      int getCornerSize(boolean resolve)
      Returns the corner size used by this theme in dips.
      Parameters:
      resolve - true to resolve auto corner size in dips.
      Returns:
      The corner size used by this theme in dips.
    • getCornerSize

      int getCornerSize()
      Returns the corner size used by this theme in dips.
      Returns:
      The corner size used by this theme in dips.
    • setCornerSize

      @NonNull T setCornerSize(float cornerSize)
      Set the corner size used by this theme.
      Parameters:
      cornerSize - The corner size to be set in dips.
      Returns:
      The CornerTheme object to allow for chaining of calls to set methods.