belongs to Maven artifact com.android.support:leanback-v17:28.0.0-alpha1
ShadowOverlayHelper.Builder
public
static
final
class
ShadowOverlayHelper.Builder
extends Object
java.lang.Object | |
↳ | android.support.v17.leanback.widget.ShadowOverlayHelper.Builder |
Builder for creating ShadowOverlayHelper.
Summary
Public constructors | |
---|---|
ShadowOverlayHelper.Builder()
|
Public methods | |
---|---|
ShadowOverlayHelper
|
build(Context context)
Create ShadowOverlayHelper object |
ShadowOverlayHelper.Builder
|
keepForegroundDrawable(boolean keepForegroundDrawable)
Set if not using foreground drawable for overlay color. |
ShadowOverlayHelper.Builder
|
needsOverlay(boolean needsOverlay)
Set if needs overlay color. |
ShadowOverlayHelper.Builder
|
needsRoundedCorner(boolean needsRoundedCorner)
Set if needs rounded corner. |
ShadowOverlayHelper.Builder
|
needsShadow(boolean needsShadow)
Set if needs shadow. |
ShadowOverlayHelper.Builder
|
options(ShadowOverlayHelper.Options options)
Set option values e.g. |
ShadowOverlayHelper.Builder
|
preferZOrder(boolean preferZOrder)
Set if prefer z-order shadow. |
Inherited methods | |
---|---|
From
class
java.lang.Object
|
Public constructors
Public methods
build
ShadowOverlayHelper build (Context context)
Create ShadowOverlayHelper object
Parameters | |
---|---|
context |
Context : The context uses to read Resources settings. |
Returns | |
---|---|
ShadowOverlayHelper |
The ShadowOverlayHelper object. |
keepForegroundDrawable
ShadowOverlayHelper.Builder keepForegroundDrawable (boolean keepForegroundDrawable)
Set if not using foreground drawable for overlay color. For example if the view has already assigned a foreground drawable for other purposes. When it's true, helper will use a ShadowOverlayContainer for overlay color.
Parameters | |
---|---|
keepForegroundDrawable |
boolean : True to keep the original foreground drawable. |
Returns | |
---|---|
ShadowOverlayHelper.Builder |
The Builder object itself. |
needsOverlay
ShadowOverlayHelper.Builder needsOverlay (boolean needsOverlay)
Set if needs overlay color.
Parameters | |
---|---|
needsOverlay |
boolean : True if needs overlay. |
Returns | |
---|---|
ShadowOverlayHelper.Builder |
The Builder object itself. |
needsRoundedCorner
ShadowOverlayHelper.Builder needsRoundedCorner (boolean needsRoundedCorner)
Set if needs rounded corner.
Parameters | |
---|---|
needsRoundedCorner |
boolean : True if needs rounded corner. |
Returns | |
---|---|
ShadowOverlayHelper.Builder |
The Builder object itself. |
needsShadow
ShadowOverlayHelper.Builder needsShadow (boolean needsShadow)
Set if needs shadow.
Parameters | |
---|---|
needsShadow |
boolean : True if needs shadow. |
Returns | |
---|---|
ShadowOverlayHelper.Builder |
The Builder object itself. |
options
ShadowOverlayHelper.Builder options (ShadowOverlayHelper.Options options)
Set option values e.g. Shadow Z value, rounded corner radius.
Parameters | |
---|---|
options |
ShadowOverlayHelper.Options : The Options object to create ShadowOverlayHelper.
|
Returns | |
---|---|
ShadowOverlayHelper.Builder |
preferZOrder
ShadowOverlayHelper.Builder preferZOrder (boolean preferZOrder)
Set if prefer z-order shadow. On old devices, z-order shadow might be slow,
set to false to fall back to static 9-patch shadow. Recommend to read
from system wide Setting value: see Settings
.
Parameters | |
---|---|
preferZOrder |
boolean : True if prefer Z shadow. Default is true. |
Returns | |
---|---|
ShadowOverlayHelper.Builder |
The Builder object itself. |
Interfaces
- BaseGridView.OnKeyInterceptListener
- BaseGridView.OnMotionInterceptListener
- BaseGridView.OnTouchInterceptListener
- BaseGridView.OnUnhandledKeyListener
- BaseOnItemViewClickedListener
- BaseOnItemViewSelectedListener
- BrowseFrameLayout.OnChildFocusListener
- BrowseFrameLayout.OnFocusSearchListener
- FacetProvider
- FacetProviderAdapter
- FocusHighlight
- FragmentAnimationProvider
- ImeKeyMonitor
- ImeKeyMonitor.ImeKeyListener
- MultiActionsProvider
- OnActionClickedListener
- OnChildLaidOutListener
- OnChildSelectedListener
- OnItemViewClickedListener
- OnItemViewSelectedListener
- PlaybackSeekUi
- SearchBar.SearchBarListener
- SearchBar.SearchBarPermissionListener
- SearchEditText.OnKeyboardDismissListener
- SpeechRecognitionCallback
- TitleViewAdapter.Provider
- ViewHolderTask
Classes
- AbstractDetailsDescriptionPresenter
- AbstractDetailsDescriptionPresenter.ViewHolder
- AbstractMediaItemPresenter
- AbstractMediaItemPresenter.ViewHolder
- AbstractMediaListHeaderPresenter
- AbstractMediaListHeaderPresenter.ViewHolder
- Action
- ArrayObjectAdapter
- BaseCardView
- BaseCardView.LayoutParams
- BaseGridView
- BrowseFrameLayout
- ClassPresenterSelector
- ControlButtonPresenterSelector
- CursorObjectAdapter
- DetailsOverviewLogoPresenter
- DetailsOverviewLogoPresenter.ViewHolder
- DetailsOverviewRow
- DetailsOverviewRow.Listener
- DetailsOverviewRowPresenter
- DetailsOverviewRowPresenter.ViewHolder
- DetailsParallax
- DiffCallback
- DividerPresenter
- DividerRow
- FocusHighlightHelper
- FullWidthDetailsOverviewRowPresenter
- FullWidthDetailsOverviewRowPresenter.Listener
- FullWidthDetailsOverviewRowPresenter.ViewHolder
- FullWidthDetailsOverviewRowPresenter.ViewHolder.DetailsOverviewRowListener
- FullWidthDetailsOverviewSharedElementHelper
- GuidanceStylist
- GuidanceStylist.Guidance
- GuidedAction
- GuidedAction.Builder
- GuidedAction.BuilderBase
- GuidedActionDiffCallback
- GuidedActionEditText
- GuidedActionsStylist
- GuidedActionsStylist.ViewHolder
- GuidedDatePickerAction
- GuidedDatePickerAction.Builder
- GuidedDatePickerAction.BuilderBase
- HeaderItem
- HorizontalGridView
- HorizontalHoverCardSwitcher
- ImageCardView
- ItemAlignmentFacet
- ItemAlignmentFacet.ItemAlignmentDef
- ItemBridgeAdapter
- ItemBridgeAdapter.AdapterListener
- ItemBridgeAdapter.ViewHolder
- ItemBridgeAdapter.Wrapper
- ItemBridgeAdapterShadowOverlayWrapper
- ListRow
- ListRowHoverCardView
- ListRowPresenter
- ListRowPresenter.SelectItemViewHolderTask
- ListRowPresenter.ViewHolder
- ListRowView
- MultiActionsProvider.MultiAction
- ObjectAdapter
- ObjectAdapter.DataObserver
- OnChildViewHolderSelectedListener
- PageRow
- Parallax
- Parallax.FloatProperty
- Parallax.IntProperty
- Parallax.PropertyMarkerValue
- ParallaxEffect
- ParallaxTarget
- ParallaxTarget.DirectPropertyTarget
- ParallaxTarget.PropertyValuesHolderTarget
- PlaybackControlsRow
- PlaybackControlsRow.ClosedCaptioningAction
- PlaybackControlsRow.FastForwardAction
- PlaybackControlsRow.HighQualityAction
- PlaybackControlsRow.MoreActions
- PlaybackControlsRow.MultiAction
- PlaybackControlsRow.OnPlaybackProgressCallback
- PlaybackControlsRow.PictureInPictureAction
- PlaybackControlsRow.PlayPauseAction
- PlaybackControlsRow.RepeatAction
- PlaybackControlsRow.RewindAction
- PlaybackControlsRow.ShuffleAction
- PlaybackControlsRow.SkipNextAction
- PlaybackControlsRow.SkipPreviousAction
- PlaybackControlsRow.ThumbsAction
- PlaybackControlsRow.ThumbsDownAction
- PlaybackControlsRow.ThumbsUpAction
- PlaybackControlsRowPresenter
- PlaybackControlsRowPresenter.ViewHolder
- PlaybackRowPresenter
- PlaybackRowPresenter.ViewHolder
- PlaybackSeekDataProvider
- PlaybackSeekDataProvider.ResultCallback
- PlaybackSeekUi.Client
- PlaybackTransportRowPresenter
- PlaybackTransportRowPresenter.ViewHolder
- Presenter
- Presenter.ViewHolder
- Presenter.ViewHolderTask
- PresenterSelector
- PresenterSwitcher
- RecyclerViewParallax
- RecyclerViewParallax.ChildPositionProperty
- Row
- RowHeaderPresenter
- RowHeaderPresenter.ViewHolder
- RowHeaderView
- RowPresenter
- RowPresenter.ViewHolder
- SearchBar
- SearchEditText
- SearchOrbView
- SearchOrbView.Colors
- SectionRow
- ShadowOverlayContainer
- ShadowOverlayHelper
- ShadowOverlayHelper.Builder
- ShadowOverlayHelper.Options
- SinglePresenterSelector
- SparseArrayObjectAdapter
- SpeechOrbView
- TitleHelper
- TitleView
- TitleViewAdapter
- VerticalGridPresenter
- VerticalGridPresenter.ViewHolder
- VerticalGridView