I could add a simple progressbar to XML activity and put a padding / margin negative, but I think Google inserted directly into the actionbar progressbar.
If I do something like this:
Activity act = this;
act.setProgress (20 * 100);
...
In the action bar displays a spinner, but I'm interested in one horizontal style bar as does Google. What is the best solution?
I am using android-support-v7 to be compatible with older versions (I'm not interested in using libraries like ActionBarSherlock)
There is no built-in component in Android that does what you want. I suggest you use the third party ActionBar-PullToRefresh instead.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.