question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[ProgressIndicator] Add behavior for show delay like ContentLoadingProgressBar

See original GitHub issue

Is your feature request related to a problem? Please describe. ContentLoadingProgressBar implements a delayed show mechanism. It seems like a common practice to wait ~500ms before showing a loading indicator and in most cases it does not need to be shown at all if the request completes quickly enough.

Describe the solution you’d like ProgressIndicator should implement a customizable showDelay to allow the view to become visible only if hide has not been called within the interval.

In addition to the above request, it may also make sense to allow customization of how the progress bar is hidden (invisible vs gone).

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:5
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
matpagcommented, Jul 27, 2020

If you have time to work on this, go on 😉 I will follow your commits when you are done

1reaction
vrendinacommented, Jul 27, 2020

@matpag I think it would be great if it was customizable since the min show time is already customizable. We usually end up having to copy ContentLoadingProgressBar and modify it to suit our needs, ideally you wouldn’t need to do that with the ProgressIndicator if it is flexible enough.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ContentLoadingProgressBar behviour on custom animation ...
My problem is that I would like my Lottie -imported animation to behave the same as ContentLoadingProgressBar . That is to show at...
Read more >
Progress indicators – Material Design 3
Progress indicators inform users about the status of ongoing processes, such as loading an app, submitting a form, or saving updates.
Read more >
One Off the Slack: Delaying a Progress Indicator
You pretty much have two options here: 1) Achieve that delay via animation delay, 2) manage the delayed state change outside of animation, ......
Read more >
ProgressBar - Android Developers
Use determinate mode for the progress bar when you want to show that a specific quantity ... android:scrollbarDefaultDelayBeforeFade, Defines the delay in ...
Read more >
ContentLoadingProgressBar - Android SDK
ContentLoadingProgressBar implements a ProgressBar that waits a minimum time to be dismissed ... Show the progress view after waiting for a minimum delay....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found