public final class ProgressBarManager extends Object
BrowseFragment
& VerticalGridFragment
to show ProgressBar
while the data is being loaded.Constructor and Description |
---|
ProgressBarManager() |
Modifier and Type | Method and Description |
---|---|
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
ProgressBar . |
void |
setRootView(ViewGroup rootView)
Sets the root view on which the progress bar will be attached.
|
void |
show()
Displays the progress bar.
|
public void setRootView(ViewGroup rootView)
FrameLayout
in order to position the progress bar widget
in the center of the screen.rootView
- view that will contain the progress bar.public void show()
public void hide()
public void setProgressBarView(View progressBarView)
ProgressBar
. This
view must have a parent. Once set, we maintain the visibility property of this view.progressBarView
- custom view that will be shown to indicate progress.public long getInitialDelay()
public void setInitialDelay(long initialDelay)
initialDelay
- millisecond representing the initial delay.public void disableProgressBar()
public void enableProgressBar()