ShadowOverlayHelper

This package is part of the
Android support library which
is no longer maintained.
The support library has been superseded by AndroidX
which is part of Jetpack.
We recommend using the AndroidX libraries in all new projects. You should also consider
migrating existing projects to AndroidX.

public
final
class
ShadowOverlayHelper
extends Object

java.lang.Object

↳

android.support.v17.leanback.widget.ShadowOverlayHelper

ShadowOverlayHelper is a helper class for shadow, overlay color and rounded corner.
There are many choices to implement Shadow, overlay color.
Initialize it with ShadowOverlayHelper.Builder and it decides the best strategy based
on options user choose and current platform version.

For shadow: it may use 9-patch with opticalBounds or Z-value based shadow for
API >= 21. When 9-patch is used, it requires a ShadowOverlayContainer
to include 9-patch views.

For overlay: it may use ShadowOverlayContainer which overrides draw() or it may
use setForeground(new ColorDrawable()) for API>=23. The foreground support
might be disabled if rounded corner is applied due to performance reason.