belongs to Maven artifact com.android.support:leanback-v17:28.0.0-alpha1
ProgressBarManager
public
final
class
ProgressBarManager
extends Object
java.lang.Object | |
↳ | android.support.v17.leanback.app.ProgressBarManager |
Manager for showing/hiding progress bar widget. This class lets user specify an initial
delay after which the progress bar will be shown. This is currently being used in
BrowseFragment
& VerticalGridFragment
to show ProgressBar
while the data is being loaded.
Summary
Public constructors | |
---|---|
ProgressBarManager()
|
Public methods | |
---|---|
void
|
disableProgressBar()
Disables progress bar. |
void
|
enableProgressBar()
Enables progress bar. |
long
|
getInitialDelay()
Returns the initial delay. |
void
|
hide()
Hides the progress bar. |
void
|
setInitialDelay(long initialDelay)
Sets the initial delay. |
void
|
setProgressBarView(View progressBarView)
Sets a custom view to be shown in place of the default |
void
|
setRootView(ViewGroup rootView)
Sets the root view on which the progress bar will be attached. |
void
|
show()
Displays the progress bar. |
Inherited methods | |
---|---|
From
class
java.lang.Object
|
Public constructors
Public methods
getInitialDelay
long getInitialDelay ()
Returns the initial delay.
Returns | |
---|---|
long |
setInitialDelay
void setInitialDelay (long initialDelay)
Sets the initial delay. Progress bar will be shown after this delay has elapsed.
Parameters | |
---|---|
initialDelay |
long : millisecond representing the initial delay.
|
setProgressBarView
void setProgressBarView (View progressBarView)
Sets a custom view to be shown in place of the default ProgressBar
. This
view must have a parent. Once set, we maintain the visibility property of this view.
Parameters | |
---|---|
progressBarView |
View : custom view that will be shown to indicate progress.
|
setRootView
void setRootView (ViewGroup rootView)
Sets the root view on which the progress bar will be attached. This class assumes the
root view to be FrameLayout
in order to position the progress bar widget
in the center of the screen.
Parameters | |
---|---|
rootView |
ViewGroup : view that will contain the progress bar.
|
Interfaces
- BrowseFragment.FragmentHost
- BrowseFragment.MainFragmentAdapterProvider
- BrowseFragment.MainFragmentRowsAdapterProvider
- BrowseSupportFragment.FragmentHost
- BrowseSupportFragment.MainFragmentAdapterProvider
- BrowseSupportFragment.MainFragmentRowsAdapterProvider
- HeadersFragment.OnHeaderClickedListener
- HeadersFragment.OnHeaderViewSelectedListener
- HeadersSupportFragment.OnHeaderClickedListener
- HeadersSupportFragment.OnHeaderViewSelectedListener
- SearchFragment.SearchResultProvider
- SearchSupportFragment.SearchResultProvider
Classes
- BackgroundManager
- BaseFragment
- BaseSupportFragment
- BrandedFragment
- BrandedSupportFragment
- BrowseFragment
- BrowseFragment.BrowseTransitionListener
- BrowseFragment.FragmentFactory
- BrowseFragment.ListRowFragmentFactory
- BrowseFragment.MainFragmentAdapter
- BrowseFragment.MainFragmentAdapterRegistry
- BrowseFragment.MainFragmentRowsAdapter
- BrowseSupportFragment
- BrowseSupportFragment.BrowseTransitionListener
- BrowseSupportFragment.FragmentFactory
- BrowseSupportFragment.ListRowFragmentFactory
- BrowseSupportFragment.MainFragmentAdapter
- BrowseSupportFragment.MainFragmentAdapterRegistry
- BrowseSupportFragment.MainFragmentRowsAdapter
- DetailsFragment
- DetailsFragmentBackgroundController
- DetailsSupportFragment
- DetailsSupportFragmentBackgroundController
- ErrorFragment
- ErrorSupportFragment
- GuidedStepFragment
- GuidedStepSupportFragment
- HeadersFragment
- HeadersSupportFragment
- OnboardingFragment
- OnboardingSupportFragment
- PlaybackFragment
- PlaybackFragmentGlueHost
- PlaybackSupportFragment
- PlaybackSupportFragmentGlueHost
- ProgressBarManager
- RowsFragment
- RowsFragment.MainFragmentAdapter
- RowsFragment.MainFragmentRowsAdapter
- RowsSupportFragment
- RowsSupportFragment.MainFragmentAdapter
- RowsSupportFragment.MainFragmentRowsAdapter
- SearchFragment
- SearchSupportFragment
- VerticalGridFragment
- VerticalGridSupportFragment
- VideoFragment
- VideoFragmentGlueHost
- VideoSupportFragment
- VideoSupportFragmentGlueHost