Interface TranslucentTheme<T extends TranslucentTheme<T>>
- Type Parameters:
T- The type of the dynamic theme.
- All Superinterfaces:
BaseTheme<T>
- All Known Implementing Classes:
AppTheme,AppWidgetTheme
A
BaseTheme to implement the translucent theme.-
Method Summary
Modifier and TypeMethodDescriptionfloatgetAlpha()Returns the opacity after converting it into the float range.intGet the opacity value used by this theme.intgetOpacity(boolean resolve) Get the opacity value used by this theme.booleanChecks whether this theme is translucent.booleanChecks whether this theme has a translucent window.setOpacity(int opacity) Set the opacity value used by this theme.
-
Method Details
-
getOpacity
int getOpacity(boolean resolve) Get the opacity value used by this theme.- Parameters:
resolve-trueto resolve auto opacity.- Returns:
- The opacity value used by this theme.
-
getOpacity
int getOpacity()Get the opacity value used by this theme.- Returns:
- The opacity value used by this theme.
-
setOpacity
Set the opacity value used by this theme.- Parameters:
opacity- The opacity value to be set.- Returns:
- The
TranslucentThemeobject to allow for chaining of calls to set methods.
-
getAlpha
float getAlpha()Returns the opacity after converting it into the float range.- Returns:
- The opacity after converting it into the float range.
-
isTranslucent
boolean isTranslucent()Checks whether this theme is translucent.- Returns:
trueif this theme is translucent.
-
isTranslucentWindow
boolean isTranslucentWindow()Checks whether this theme has a translucent window.- Returns:
trueif this theme has a translucent window.
-