Interface DynamicSurfaceWidget

All Known Implementing Classes:
DynamicButton, DynamicCardView, DynamicMaterialCardView, DynamicPopupBackground, DynamicSpinner

public interface DynamicSurfaceWidget
Interface to create dynamic widgets with surface options which can be used to adjust their elevation, background, etc. according to the DynamicTheme.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Checks whether the background should be used as the surface.
    boolean
    Returns whether to force elevation for this widget.
    boolean
    Checks whether the stroke is required for the surface card view.
    void
    setForceElevation(boolean forceElevation)
    Sets whether to force elevation for this widget.
    void
    Set surface for this widget according to the supplied values.
  • Method Details

    • isForceElevation

      boolean isForceElevation()
      Returns whether to force elevation for this widget.
      Returns:
      true to force elevation for this widget.
    • setForceElevation

      void setForceElevation(boolean forceElevation)
      Sets whether to force elevation for this widget.
      Parameters:
      forceElevation - true to force elevation.
    • setSurface

      void setSurface()
      Set surface for this widget according to the supplied values.
    • isBackgroundSurface

      boolean isBackgroundSurface()
      Checks whether the background should be used as the surface.
      Returns:
      true if the background should be used as surface.
    • isStrokeRequired

      boolean isStrokeRequired()
      Checks whether the stroke is required for the surface card view.
      Returns:
      true if the stroke is required for this surface card view.
      See Also: