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 TypeMethodDescriptionint
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.
-
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
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
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.
-