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.

Feature request - a "SimpleProgressDialog" - progress bar (the indeterminate type)

See original GitHub issue

Hello there, I like how simple and easy to use your library is.
I have a feature request, for a progress bar, but in a dialog.

I’m mainly interested in an indeterminate progress bar, so it just spins forever until I get rid of it. Just thinking out loud, we call the .show() on a SimpleProgressDialog. Then we start a long process in our code. Then later on we call .dismiss().

Some examples of circular progress bars can be seen here:

https://github.com/castorflex/SmoothProgressBar https://github.com/zhanghai/MaterialProgressBar

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
eltoscommented, May 28, 2021

Great, I’ll merge it then and publish a new version.

0reactions
mendhakcommented, May 27, 2021

Wow that was pretty fast, you’ve done a lot and also made documentation for it!

I cloned your branch and tried playing with it in the sample app. It was easy to follow, I was able to create an indeterminate progress dialog, then dismiss it. I also tried out the bar type, I referenced the dialog and then ‘later’ updated its progress. The secondary progress is a nice touch too.

        SimpleProgressDialog spd = SimpleProgressDialog.bar()
                .title(R.string.login)
                .msg(R.string.creating_user_profile_wait)
                .percentage(true);

        spd.show(this, PROGRESS_DIALOG);
        spd.updateProgress(50,100);
        spd.updateSecondaryProgress(61);

It looks quite flexible and you’ve put a good amount of thought into it. Nicely done!

Read more comments on GitHub >

github_iconTop Results From Across the Web

android - Indeterminate ProgressBar while loading content for ...
In my PreferenceFragment there is a ListPreference which is programmatically populated at onCreate(). Thus, there is a little lag at the fragment start....
Read more >
ProgressDialog - Android Developers
Creates a ProgressDialog with a horizontal progress bar. int, STYLE_SPINNER ... Sets the drawable to be used to display the indeterminate progress value....
Read more >
The Progress Indicator element - HTML - MDN Web Docs
The HTML element displays an indicator showing the completion progress of a task, typically displayed as a progress bar.
Read more >
Progress Bar | Components | Vaadin Docs
Use an indeterminate Progress Bar to show that progress is ongoing but can't be computed. Open in a new tab. Show code.
Read more >
Progress Bars
Determinate Progress Bar : A horizontal bar or some other shape that fills to show a quantitative amount of progress.
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