public final class

ShadowOverlayHelper.Options

extends java.lang.Object

 java.lang.Object

↳androidx.leanback.widget.ShadowOverlayHelper.Options

Overview

Option values for ShadowOverlayContainer.

Summary

Fields
public static final ShadowOverlayHelper.OptionsDEFAULT

Default Options for values.

Constructors
publicOptions()

Methods
public ShadowOverlayHelper.OptionsdynamicShadowZ(float unfocusedZ, float focusedZ)

Set value of focused and unfocused Z value for shadow.

public final floatgetDynamicShadowFocusedZ()

Get z value of shadow when a view is focused.

public final floatgetDynamicShadowUnfocusedZ()

Get z value of shadow when a view is not focused.

public final intgetRoundedCornerRadius()

Get radius of rounded corner in pixels.

public ShadowOverlayHelper.OptionsroundedCornerRadius(int roundedCornerRadius)

Set value of rounded corner radius.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Fields

public static final ShadowOverlayHelper.Options DEFAULT

Default Options for values.

Constructors

public Options()

Methods

public ShadowOverlayHelper.Options roundedCornerRadius(int roundedCornerRadius)

Set value of rounded corner radius.

Parameters:

roundedCornerRadius: Number of pixels of rounded corner radius. Set to 0 to use default settings.

Returns:

The Options object itself.

public ShadowOverlayHelper.Options dynamicShadowZ(float unfocusedZ, float focusedZ)

Set value of focused and unfocused Z value for shadow.

Parameters:

unfocusedZ: Number of pixels for unfocused Z value.
focusedZ: Number of pixels for focused Z value.

Returns:

The Options object itself.

public final int getRoundedCornerRadius()

Get radius of rounded corner in pixels.

Returns:

Radius of rounded corner in pixels.

public final float getDynamicShadowUnfocusedZ()

Get z value of shadow when a view is not focused.

Returns:

Z value of shadow when a view is not focused.

public final float getDynamicShadowFocusedZ()

Get z value of shadow when a view is focused.

Returns:

Z value of shadow when a view is focused.