List of usage examples for android.app Activity setProgressBarIndeterminate
@Deprecated public final void setProgressBarIndeterminate(boolean indeterminate)
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); }