List of usage examples for android.app Activity setProgressBarIndeterminateVisibility
@Deprecated public final void setProgressBarIndeterminateVisibility(boolean visible)
From source file:com.hybris.mobile.app.commerce.utils.UIUtils.java
/** * Show/Hide loading icon on the action bar * * @param activity// w ww .j a v a 2 s .co m * @param show */ public static void showLoadingActionBar(Activity activity, boolean show) { if (activity != null) activity.setProgressBarIndeterminateVisibility(show); }
From source file:ca.liquidlabs.android.speedtestvisualizer.fragments.BaseGraphFragment.java
/** * Shows progress animation in ActioBar. *///from w ww . j a v a2 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. *///from w w w . j a v a 2 s . c o m protected void hideProgressIndicator() { final Activity activity = getActivity(); if (activity.isFinishing()) { return; } activity.setProgressBarIndeterminateVisibility(false); activity.setProgressBarIndeterminate(false); }
From source file:de.vanita5.twittnuker.fragment.support.BaseSupportDialogFragment.java
public void setProgressBarIndeterminateVisibility(final boolean visible) { final Activity activity = getActivity(); if (activity == null) return;/* w w w.j a v a2 s . c o m*/ activity.setProgressBarIndeterminateVisibility(visible); }
From source file:org.jamienicol.episodes.AddShowSearchFragment.java
@Override public void onLoadFinished(Loader<List<Show>> loader, List<Show> data) { AddShowSearchResults results = AddShowSearchResults.getInstance(); results.setData(data);//ww w. j ava 2 s . co m Activity activity = getActivity(); activity.setProgressBarIndeterminateVisibility(false); SearchResultsAdapter adapter = null; if (data != null) { adapter = new SearchResultsAdapter(activity, data); } setListAdapter(adapter); }
From source file:org.mariotaku.twidere.fragment.support.BaseSupportFragment.java
public void setProgressBarIndeterminateVisibility(final boolean visible) { final Activity activity = getActivity(); if (activity instanceof BaseAppCompatActivity) { activity.setProgressBarIndeterminateVisibility(visible); }/*from w w w .ja v a 2s . c om*/ }
From source file:net.reichholf.dreamdroid.fragment.helper.DreamDroidFragmentHelper.java
public void onAttach(Activity activity) { if (activity.getClass().equals(ActionBarActivity.class)) ((ActionBarActivity) activity).setSupportProgressBarIndeterminateVisibility(false); else/* ww w . j a v a 2s . co m*/ activity.setProgressBarIndeterminateVisibility(false); }
From source file:de.vanita5.twittnuker.fragment.support.BaseSupportListFragment.java
public void setProgressBarIndeterminateVisibility(final boolean visible) { final Activity activity = getActivity(); if (activity == null) return;/*w w w . j a va 2 s .c om*/ activity.setProgressBarIndeterminateVisibility(visible); if (activity instanceof HomeActivity) { ((HomeActivity) activity).setHomeProgressBarIndeterminateVisibility(visible); } }