How to use undefined progress bar in appcompat-v7 r21 library?

Using the new app21, r21 library, I wanted to show an undefined (rotating) progress bar on the Toolbar.

Previously, using the <r21 appcompat library, this worked, but there seems to be no progress bar implementation in r21. I'm right? Is there a way to do this without creating a custom progress bar?

My onCreate method starts with:

supportRequestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); super.onCreate(savedInstanceState); setSupportProgressBarIndeterminate(true); setSupportProgressBarIndeterminateVisibility(true); 
+6
source share
1 answer

In short: no, you need to create a custom progress bar on the toolbar. Progress not supported in action bars for 21+

+1
source

Source: https://habr.com/ru/post/981071/


All Articles