Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ProgressDialog with CircularProgressBar? #49

Closed
MufriA opened this issue Sep 16, 2014 · 2 comments
Closed

ProgressDialog with CircularProgressBar? #49

MufriA opened this issue Sep 16, 2014 · 2 comments

Comments

@MufriA
Copy link

MufriA commented Sep 16, 2014

Any plans to include ProgressDialog with CircularProgressBar?

@castorflex
Copy link
Owner

@MufriA
Copy link
Author

MufriA commented Sep 16, 2014

Ah, it works perfectly, thanks for the hint.

            CircularProgressDrawable circularProgressDrawable = new CircularProgressDrawable
                    .Builder(this)
                    .colors(getResources().getIntArray(R.array.gplus_colors))
                    .sweepSpeed(1f)
                    .strokeWidth(2)
                    .style(CircularProgressDrawable.Style.ROUNDED).build();


            ProgressDialog progress = new ProgressDialog(this);
            progress.setIndeterminateDrawable(circularProgressDrawable);
            progress.setMessage(getResources().getText(R.string.please_wait));
            progress.setIndeterminate(true);
            progress.setCancelable(false);

@MufriA MufriA closed this as completed Sep 16, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants