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 TypeMethodDescriptionbooleanChecks whether the background should be used as the surface.booleanReturns whether to force elevation for this widget.booleanChecks whether the stroke is required for the surface card view.voidsetForceElevation(boolean forceElevation) Sets whether to force elevation for this widget.voidSet surface for this widget according to the supplied values.
-
Method Details
-
isForceElevation
boolean isForceElevation()Returns whether to force elevation for this widget.- Returns:
trueto force elevation for this widget.
-
setForceElevation
void setForceElevation(boolean forceElevation) Sets whether to force elevation for this widget.- Parameters:
forceElevation-trueto 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:
trueif the background should be used as surface.
-
isStrokeRequired
boolean isStrokeRequired()Checks whether the stroke is required for the surface card view.- Returns:
trueif the stroke is required for this surface card view.- See Also:
-