ActionBarSherlock,如何获得支持进度条不确定的知名度? [英] ActionBarSherlock, how to get support progress bar indeterminate visibility?

查看:100
本文介绍了ActionBarSherlock,如何获得支持进度条不确定的知名度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是可能的设置与不确定的进度条的可见性:

It's possible to set the visibility of the indeterminate progress bar with :

setSupportProgressBarIndeterminateVisibility(true / false);

但你如何检查进度条的知名度?
一种getSupportProgressBarIndeterminateVisibility()?

But how do you check the visibility of the progress bar? A kind of "getSupportProgressBarIndeterminateVisibility()" ?

感谢。

推荐答案

据我所知,像getSupportProgressBarIndeterminateVisibility()不存在,截至目前。因此,

As far as i know, something like "getSupportProgressBarIndeterminateVisibility()" doesn't exist as of now. so,

你可能用一个标志来达到目的的。

you could possibly use a flag to achieve the objective.

例如:

Boolean isProgressBarVisible = false;
...   
//some code
setSupportProgressBarIndeterminateVisibility(true);
isProgressBarVisible = true;

//and when you set its visibility to false,
setSupportProgressBarIndeterminateVisibility(false);
isProgressBarVisible = false;

//And in your code where u need to perform a check,

if(isProgressBarVisible){

     //do stuff
} 

这篇关于ActionBarSherlock,如何获得支持进度条不确定的知名度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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