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
A
BaseTheme to implement the corner theme.-
Method Summary
Modifier and TypeMethodDescriptionintReturns the corner size used by this theme in pixels.intgetCornerRadius(boolean resolve) Returns the corner size used by this theme in pixels.intReturns the corner size used by this theme in dips.intgetCornerSize(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.
-
Method Details
-
getCornerRadius
int getCornerRadius(boolean resolve) Returns the corner size used by this theme in pixels.- Parameters:
resolve-trueto 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
Set the corner size used by this theme.- Parameters:
cornerRadius- The corner size to be set in pixels.- Returns:
- The
CornerThemeobject 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-trueto 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
Set the corner size used by this theme.- Parameters:
cornerSize- The corner size to be set in dips.- Returns:
- The
CornerThemeobject to allow for chaining of calls to set methods.
-