Reputation: 73433
Using the new r21 appcompat library, I wanted to show an indeterminate (spinning) progress bar in the Toolbar.
Previously, using the < r21 appcompat library, it worked, but it seems that there is no implementation of the progress bar in r21. Am I right? Is there a way for this without creating a custom progress bar?
My onCreate method starts with:
supportRequestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
super.onCreate(savedInstanceState);
setSupportProgressBarIndeterminate(true);
setSupportProgressBarIndeterminateVisibility(true);
Upvotes: 6
Views: 2127
Reputation: 13450
In short: no, you have to create a custom progress bar in your Toolbar. Progress is not supported in action bars for 21+
Upvotes: 1