Shivasurya
Shivasurya

Reputation: 113

show progress spinner actionbar android L api 21

respected developers, how to show progress spinner in actionbar android L and below with appcompat.i have added toolbar widget.v7

requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
 setProgressBarIndeterminateVisibility(Boolean.TRUE); 

if it is wrong or is there any other approach please guide me with complete steps.i'm using Eclipse for developing.

thanks!

Upvotes: 2

Views: 613

Answers (2)

UDI
UDI

Reputation: 1602

we have committed endless progress bar in the toolbar and control its visibility. The only variable are the menu items present in your application

Upvotes: 0

Shivasurya
Shivasurya

Reputation: 113

ProgressBar in ActionBar on Android L Preview

on seeing this issue! a user filed a bug in official android developer Bug report forum !

https://code.google.com/p/android-developer-preview/issues/detail?id=891&q=progressbar&colspec=ID%20Type%20Status%20Owner%20Summary

and the project member reported that

Thank you for providing this feedback. We have taken a look at the issue and concluded that this is currently working as intended as the progress bar features are not supported on Material action bars. This should throw an exception if you try to use them.

if someone finds/fix the issue pls comment/answer! thanks!

Upvotes: 4

Related Questions