belongs to Maven artifact com.android.support:leanback-v17:28.0.0-alpha1
ShadowOverlayContainer
public
class
ShadowOverlayContainer
extends FrameLayout
java.lang.Object | ||||
↳ | android.view.View | |||
↳ | android.view.ViewGroup | |||
↳ | android.widget.FrameLayout | |||
↳ | android.support.v17.leanback.widget.ShadowOverlayContainer |
Provides an SDK version-independent wrapper to support shadows, color overlays, and rounded
corners. It's not always preferred to create a ShadowOverlayContainer, use
ShadowOverlayHelper
instead.
prepareParentForShadow(ViewGroup)
must be called on parent of container
before using shadow. Depending on sdk version, optical bounds might be applied
to parent.
If shadows can appear outside the bounds of the parent view, setClipChildren(false) must be called on the grandparent view.
initialize(boolean, boolean, boolean)
must be first called on the container.
Then call wrap(View)
to insert the wrapped view into the container.
Call setShadowFocusLevel(float)
to control the strength of the shadow (focused shadows
cast stronger shadows).
Call setOverlayColor(int)
to control overlay color.
Summary
Constants | |
---|---|
int |
SHADOW_DYNAMIC
Shadows depend on the size, shape, and position of the view. |
int |
SHADOW_NONE
No shadow. |
int |
SHADOW_STATIC
Shadows are fixed. |
Inherited constants |
---|
![]()
android.view.ViewGroup
|
![]()
android.view.View
|