I was going through developer site of android and I found a class named ContentLoadingProgressBar. By seeing this class I come up with some questions in my mind
According to the docs :
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)
This clearly mentions its no different from a regular ProgressBar
. Furthermore this is a UI tweak to be precise. ie ContentLoadingProgressBar
wouldn't show up if hide()
is called in less than 0.5s
after executing show()
, thus preventing from quick flickering in the UI
. Hope it helps.