Most visited

Recently visited

ShadowOverlayHelper.Options

public static final class ShadowOverlayHelper.Options
extends Object

java.lang.Object
    android.support.v17.leanback.widget.ShadowOverlayHelper.Options


ShadowOverlayContainer的选项值。

摘要(Summary)

Fields

public static final ShadowOverlayHelper.Options DEFAULT

值的默认选项。

Public constructors

ShadowOverlayHelper.Options()

公共方法(Public methods)

ShadowOverlayHelper.Options dynamicShadowZ(float unfocusedZ, float focusedZ)

为阴影设置聚焦和未聚焦的Z值。

final float getDynamicShadowFocusedZ()

聚焦视图时获取阴影的z值。

final float getDynamicShadowUnfocusedZ()

当视图未聚焦时获取阴影的z值。

final int getRoundedCornerRadius()

以像素为单位获取圆角的半径。

ShadowOverlayHelper.Options roundedCornerRadius(int roundedCornerRadius)

设置圆角半径的值。

继承方法(Inherited methods)

From class java.lang.Object

Fields

DEFAULT

ShadowOverlayHelper.Options DEFAULT

值的默认选项。

Public constructors

ShadowOverlayHelper.Options

ShadowOverlayHelper.Options ()

公共方法(Public methods)

dynamicShadowZ

ShadowOverlayHelper.Options dynamicShadowZ (float unfocusedZ, 
                float focusedZ)

为阴影设置聚焦和未聚焦的Z值。

参数(Parameters)
unfocusedZ float: Number of pixels for unfocused Z value.
focusedZ float: Number of pixels for foucsed Z value.
返回(Returns)
ShadowOverlayHelper.Options The Options object itself.

getDynamicShadowFocusedZ

float getDynamicShadowFocusedZ ()

聚焦视图时获取阴影的z值。

返回(Returns)
float Z value of shadow when a view is focused.

getDynamicShadowUnfocusedZ

float getDynamicShadowUnfocusedZ ()

当视图未聚焦时获取阴影的z值。

返回(Returns)
float Z value of shadow when a view is not focused.

getRoundedCornerRadius

int getRoundedCornerRadius ()

以像素为单位获取圆角的半径。

返回(Returns)
int Radius of rounded corner in pixels.

roundedCornerRadius

ShadowOverlayHelper.Options roundedCornerRadius (int roundedCornerRadius)

设置圆角半径的值。

参数(Parameters)
roundedCornerRadius int: Number of pixels of rounded corner radius. Set to 0 to use default settings.
返回(Returns)
ShadowOverlayHelper.Options The Options object itself.

Hooray!