本文整理了Java中android.app.Activity.setProgressBarVisibility()
方法的一些代码示例,展示了Activity.setProgressBarVisibility()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Activity.setProgressBarVisibility()
方法的具体详情如下:
包路径:android.app.Activity
类名称:Activity
方法名:setProgressBarVisibility
暂无
代码示例来源:origin: androidquery/androidquery
act.setProgressBarVisibility(false);
代码示例来源:origin: androidquery/androidquery
public void show(String url){
reset();
if(pd != null){
AQuery aq = new AQuery(pd.getContext());
aq.show(pd);
}
if(act != null){
act.setProgressBarIndeterminateVisibility(true);
act.setProgressBarVisibility(true);
}
if(pb != null){
pb.setTag(AQuery.TAG_URL, url);
pb.setVisibility(View.VISIBLE);
}
if(view != null){
view.setTag(AQuery.TAG_URL, url);
view.setVisibility(View.VISIBLE);
}
}
代码示例来源:origin: androidquery/androidquery
act.setProgressBarVisibility(show);
代码示例来源:origin: androidquery/androidquery
act.setProgressBarVisibility(show);
代码示例来源:origin: robolectric/robolectric
@Test
public void getProgressBar_returnsTheProgressBar() {
Activity activity = Robolectric.buildActivity(TestActivity.class).create().get();
ProgressBar progress = shadowOf(activity.getWindow()).getProgressBar();
assertThat(progress.getVisibility()).isEqualTo(View.INVISIBLE);
activity.setProgressBarVisibility(true);
assertThat(progress.getVisibility()).isEqualTo(View.VISIBLE);
activity.setProgressBarVisibility(false);
assertThat(progress.getVisibility()).isEqualTo(View.GONE);
}
代码示例来源:origin: com.actionbarsherlock/actionbarsherlock
@Override
public void setProgressBarVisibility(boolean visible) {
if (ActionBarSherlock.DEBUG) Log.d(TAG, "[setProgressBarVisibility] visible: " + visible);
mActivity.setProgressBarVisibility(visible);
}
代码示例来源:origin: com.uphyca/android-junit4-robolectric
/**
* @param visible
* @see android.app.Activity#setProgressBarVisibility(boolean)
*/
public final void setProgressBarVisibility(boolean visible) {
mActivity.setProgressBarVisibility(visible);
}
代码示例来源:origin: fr3ts0n/AndrOBD
@Override
public void onPreExecute()
{
activity.setProgressBarVisibility(true);
}
代码示例来源:origin: com.willowtreeapps/oak-demos
@Override
public void setProgressBarVisibility(boolean visible) {
if (DEBUG) Log.d(TAG, "[setProgressBarVisibility] visible: " + visible);
mActivity.setProgressBarVisibility(visible);
}
代码示例来源:origin: fr3ts0n/AndrOBD
@Override
public void onPostExecute(String result)
{
activity.setProgressBarVisibility(false);
// show saved message
String msg = String.format("CSV %s to %s",
activity.getString(R.string.saved),
fileName);
log.log(Level.INFO, msg);
Toast.makeText(activity, msg, Toast.LENGTH_SHORT).show();
// if export file should be sent immediately ...
if(prefs.getBoolean(OPT_SEND_EXPORT, false))
{
// allow sending the generated file ...
Intent sendIntent = new Intent(Intent.ACTION_SEND);
sendIntent.setType("*/*");
sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(new File(fileName)));
activity.startActivity(
Intent.createChooser(sendIntent,
activity.getResources().getText(R.string.send_to)));
}
}
}
代码示例来源:origin: com.googlecode.android-query/android-query
act.setProgressBarVisibility(false);
代码示例来源:origin: com.googlecode.android-query/android-query
act.setProgressBarVisibility(show);
代码示例来源:origin: com.googlecode.android-query/android-query
public void show(String url){
reset();
if(pd != null){
AQuery aq = new AQuery(pd.getContext());
aq.show(pd);
}
if(act != null){
act.setProgressBarIndeterminateVisibility(true);
act.setProgressBarVisibility(true);
}
if(pb != null){
pb.setTag(AQuery.TAG_URL, url);
pb.setVisibility(View.VISIBLE);
}
if(view != null){
view.setTag(AQuery.TAG_URL, url);
view.setVisibility(View.VISIBLE);
}
}
代码示例来源:origin: com.googlecode.android-query/android-query
act.setProgressBarVisibility(show);
内容来源于网络,如有侵权,请联系作者删除!