Android的动作条下的进度条,并删除圆进步 [英] Android, Progress Bar under ActionBar, and remove circle progress

查看:201
本文介绍了Android的动作条下的进度条,并删除圆进步的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用ActionBarSherlock,以及使用的操作栏自定义视图,我想使进度条,使用该code

I am using ActionBarSherlock, and using custom view for the action bar and i want to make progress bar, using this code

requestWindowFeature(Window.FEATURE_PROGRESS);
requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
setContentView(R.layout.activity_main);
setSupportProgressBarIndeterminateVisibility(true);
setProgressBarIndeterminate(true);

但不知何故,进度条上方显示操作栏,也是它把一个圆进度指示,在最左边的操作栏,

but somehow the progress bar is appear above the action bar and also it put a circle progress indication at left most of action bar,

如何把进度条下的操作栏,并删除圆指标呢?

how to put the progress bar under the action bar and remove the circle indicator?

谢谢

推荐答案

的原因圈,是此行的code。

The reason for the circle, is this line of code.

requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);

和作为进度这应该启用它。

And as for the progressbar this should enable it.

requestWindowFeature(Window.FEATURE_PROGRESS);

正如你已经做了,你现在需要的是改变它。

As you've already done, what you need now is to alter it.

这里的例子。

对于这里一个很好的答案看了类似的问题。

For a similar question with a good answer look here.

这篇关于Android的动作条下的进度条,并删除圆进步的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆