public static final class ShadowOverlayHelper.Options extends Object
Modifier and Type | Field and Description |
---|---|
static ShadowOverlayHelper.Options |
DEFAULT
Default Options for values.
|
Constructor and Description |
---|
Options() |
Modifier and Type | Method and Description |
---|---|
ShadowOverlayHelper.Options |
dynamicShadowZ(float unfocusedZ,
float focusedZ)
Set value of focused and unfocused Z value for shadow.
|
float |
getDynamicShadowFocusedZ()
Get z value of shadow when a view is focused.
|
float |
getDynamicShadowUnfocusedZ()
Get z value of shadow when a view is not focused.
|
int |
getRoundedCornerRadius()
Get radius of rounded corner in pixels.
|
ShadowOverlayHelper.Options |
roundedCornerRadius(int roundedCornerRadius)
Set value of rounded corner radius.
|
public static final ShadowOverlayHelper.Options DEFAULT
public ShadowOverlayHelper.Options roundedCornerRadius(int roundedCornerRadius)
roundedCornerRadius
- Number of pixels of rounded corner radius.
Set to 0 to use default settings.public ShadowOverlayHelper.Options dynamicShadowZ(float unfocusedZ, float focusedZ)
unfocusedZ
- Number of pixels for unfocused Z value.focusedZ
- Number of pixels for focused Z value.public final int getRoundedCornerRadius()
public final float getDynamicShadowUnfocusedZ()
public final float getDynamicShadowFocusedZ()