Example usage for android.app Activity setProgressBarIndeterminate

List of usage examples for android.app Activity setProgressBarIndeterminate

Introduction

In this page you can find the example usage for android.app Activity setProgressBarIndeterminate.

Prototype

@Deprecated
public final void setProgressBarIndeterminate(boolean indeterminate) 

Source Link

Document

Sets whether the horizontal progress bar in the title should be indeterminate (the circular is always indeterminate).

Usage

From source file:com.github.rutvijkumar.twittfuse.Util.java

private static void setProgressBarVisibility(Activity activity, boolean show) {
    activity.setProgressBarIndeterminate(show);
}

From source file:ca.liquidlabs.android.speedtestvisualizer.fragments.BaseGraphFragment.java

/**
 * Shows progress animation in ActioBar.
 *///from  w ww  . java2 s.  c o  m
protected void showProgressIndicator() {
    final Activity activity = getActivity();
    if (activity.isFinishing()) {
        return;
    }
    activity.setProgressBarIndeterminateVisibility(true);
    activity.setProgressBarIndeterminate(true);
}

From source file:ca.liquidlabs.android.speedtestvisualizer.fragments.BaseGraphFragment.java

/**
 * Hides progress animation in ActionBar.
 *//* w  ww .ja va  2 s.  c  o  m*/
protected void hideProgressIndicator() {
    final Activity activity = getActivity();
    if (activity.isFinishing()) {
        return;
    }
    activity.setProgressBarIndeterminateVisibility(false);
    activity.setProgressBarIndeterminate(false);
}