ContentLoadingProgressBar
open class ContentLoadingProgressBar : ProgressBar
kotlin.Any | |||
↳ | android.view.View | ||
↳ | android.widget.ProgressBar | ||
↳ | androidx.core.widget.ContentLoadingProgressBar |
ContentLoadingProgressBar implements a ProgressBar that waits a minimum time to be dismissed before showing. Once visible, the progress bar will be visible for a minimum amount of time to avoid "flashes" in the UI when an event could take a largely variable time to complete (from none, to a user perceivable amount)
Summary
Public constructors |
|
---|---|
<init>(@NonNull context: Context, @Nullable attrs: AttributeSet?) |
Public methods |
|
---|---|
open Unit |
hide() Hide the progress view if it is visible. |
open Unit | |
open Unit | |
open Unit |
show() Show the progress view after waiting for a minimum delay. |
Public constructors
<init>
ContentLoadingProgressBar(@NonNull context: Context)
<init>
ContentLoadingProgressBar(@NonNull context: Context, @Nullable attrs: AttributeSet?)
Public methods
hide
open fun hide(): Unit
Hide the progress view if it is visible. The progress view will not be hidden until it has been shown for at least a minimum show time. If the progress view was not yet visible, cancels showing the progress view.
onAttachedToWindow
open fun onAttachedToWindow(): Unit
onDetachedFromWindow
open fun onDetachedFromWindow(): Unit
show
open fun show(): Unit
Show the progress view after waiting for a minimum delay. If during that time, hide() is called, the view is never made visible.