Search in sources :

Example 1 with AsyncSleepLoader

use of com.wada811.android.dialogfragments.sample.progressdialogfragment.examples.AsyncSleepLoader in project Android-DialogFragments by wada811.

the class LoaderSpinnerProgressDialogFragmentExamplesFragment method onCreateLoader.

@Override
public Loader<Object> onCreateLoader(int i, Bundle bundle) {
    Log.i(TAG, "onCreateLoader");
    ProgressDialogFragment dialogFragment = new ProgressDialogFragment();
    dialogFragment.setIcon(R.drawable.ic_launcher);
    dialogFragment.setTitle(R.string.title_activity_progress_dialog_fragment_with_loader_in_fragment);
    dialogFragment.setProgressStyle(ProgressDialogFragment.STYLE_SPINNER);
    dialogFragment.setMessage("Loading...");
    dialogFragment.setOnCancelListener(this);
    dialogFragment.show(getChildFragmentManager(), ProgressDialogFragment.TAG);
    return new AsyncSleepLoader(getActivity());
}
Also used : AsyncSleepLoader(com.wada811.android.dialogfragments.sample.progressdialogfragment.examples.AsyncSleepLoader) ProgressDialogFragment(com.wada811.android.dialogfragments.material.ProgressDialogFragment)

Example 2 with AsyncSleepLoader

use of com.wada811.android.dialogfragments.sample.progressdialogfragment.examples.AsyncSleepLoader in project Android-DialogFragments by wada811.

the class LoaderSpinnerProgressDialogFragmentExamplesActivity method onCreateLoader.

@Override
public Loader<Object> onCreateLoader(int i, Bundle bundle) {
    Log.i(TAG, "onCreateLoader");
    ProgressDialogFragment dialogFragment = new ProgressDialogFragment();
    dialogFragment.setIcon(R.drawable.ic_launcher);
    dialogFragment.setTitle(R.string.title_activity_progress_dialog_fragment_with_loader_in_activity);
    dialogFragment.setProgressStyle(ProgressDialogFragment.STYLE_SPINNER);
    dialogFragment.setMessage("Loading...");
    dialogFragment.setIndeterminate(true);
    dialogFragment.setOnCancelListener(this);
    dialogFragment.show(getSupportFragmentManager(), ProgressDialogFragment.TAG);
    return new AsyncSleepLoader(this);
}
Also used : AsyncSleepLoader(com.wada811.android.dialogfragments.sample.progressdialogfragment.examples.AsyncSleepLoader) ProgressDialogFragment(com.wada811.android.dialogfragments.traditional.ProgressDialogFragment)

Example 3 with AsyncSleepLoader

use of com.wada811.android.dialogfragments.sample.progressdialogfragment.examples.AsyncSleepLoader in project Android-DialogFragments by wada811.

the class LoaderSpinnerProgressDialogFragmentExamplesFragment method onCreateLoader.

@Override
public Loader<Object> onCreateLoader(int i, Bundle bundle) {
    Log.i(TAG, "onCreateLoader");
    ProgressDialogFragment dialogFragment = new ProgressDialogFragment();
    dialogFragment.setIcon(R.drawable.ic_launcher);
    dialogFragment.setTitle(R.string.title_activity_progress_dialog_fragment_with_loader_in_fragment);
    dialogFragment.setProgressStyle(ProgressDialogFragment.STYLE_SPINNER);
    dialogFragment.setMessage("Loading...");
    dialogFragment.setOnCancelListener(this);
    dialogFragment.show(getChildFragmentManager(), ProgressDialogFragment.TAG);
    return new AsyncSleepLoader(getActivity());
}
Also used : AsyncSleepLoader(com.wada811.android.dialogfragments.sample.progressdialogfragment.examples.AsyncSleepLoader) ProgressDialogFragment(com.wada811.android.dialogfragments.traditional.ProgressDialogFragment)

Example 4 with AsyncSleepLoader

use of com.wada811.android.dialogfragments.sample.progressdialogfragment.examples.AsyncSleepLoader in project Android-DialogFragments by wada811.

the class LoaderSpinnerProgressDialogFragmentExamplesActivity method onCreateLoader.

@Override
public Loader<Object> onCreateLoader(int i, Bundle bundle) {
    Log.i(TAG, "onCreateLoader");
    ProgressDialogFragment dialogFragment = new ProgressDialogFragment();
    dialogFragment.setIcon(R.drawable.ic_launcher);
    dialogFragment.setTitle(R.string.title_activity_progress_dialog_fragment_with_loader_in_activity);
    dialogFragment.setProgressStyle(ProgressDialogFragment.STYLE_SPINNER);
    dialogFragment.setMessage("Loading...");
    dialogFragment.setIndeterminate(true);
    dialogFragment.setOnCancelListener(this);
    dialogFragment.show(getSupportFragmentManager(), ProgressDialogFragment.TAG);
    return new AsyncSleepLoader(this);
}
Also used : AsyncSleepLoader(com.wada811.android.dialogfragments.sample.progressdialogfragment.examples.AsyncSleepLoader) ProgressDialogFragment(com.wada811.android.dialogfragments.material.ProgressDialogFragment)

Aggregations

AsyncSleepLoader (com.wada811.android.dialogfragments.sample.progressdialogfragment.examples.AsyncSleepLoader)4 ProgressDialogFragment (com.wada811.android.dialogfragments.material.ProgressDialogFragment)2 ProgressDialogFragment (com.wada811.android.dialogfragments.traditional.ProgressDialogFragment)2