Search in sources :

Example 51 with DialogFragment

use of android.support.v4.app.DialogFragment in project bitcoin-wallet by bitcoin-wallet.

the class RestoreWalletDialogFragment method show.

public static void show(final FragmentManager fm) {
    final DialogFragment newFragment = new RestoreWalletDialogFragment();
    newFragment.show(fm, FRAGMENT_TAG);
}
Also used : DialogFragment(android.support.v4.app.DialogFragment)

Example 52 with DialogFragment

use of android.support.v4.app.DialogFragment in project bitcoin-wallet by bitcoin-wallet.

the class ProgressDialogFragment method dismissProgress.

public static void dismissProgress(final FragmentManager fm) {
    final DialogFragment fragment = (DialogFragment) fm.findFragmentByTag(FRAGMENT_TAG);
    fragment.dismissAllowingStateLoss();
}
Also used : DialogFragment(android.support.v4.app.DialogFragment)

Example 53 with DialogFragment

use of android.support.v4.app.DialogFragment in project bitcoin-wallet by bitcoin-wallet.

the class ReportIssueDialogFragment method show.

public static void show(final FragmentManager fm, final int titleResId, final int messageResId, final String subject, final String contextualData) {
    final DialogFragment newFragment = new ReportIssueDialogFragment();
    final Bundle args = new Bundle();
    args.putInt(KEY_TITLE, titleResId);
    args.putInt(KEY_MESSAGE, messageResId);
    args.putString(KEY_SUBJECT, subject);
    args.putString(KEY_CONTEXTUAL_DATA, contextualData);
    newFragment.setArguments(args);
    newFragment.show(fm, FRAGMENT_TAG);
}
Also used : Bundle(android.os.Bundle) DialogFragment(android.support.v4.app.DialogFragment)

Example 54 with DialogFragment

use of android.support.v4.app.DialogFragment in project musicbrainz-android by jdamcd.

the class ReleaseActivity method showReleaseSelectionDialog.

private void showReleaseSelectionDialog() {
    DialogFragment releaseSelection = new ReleaseSelectionDialog();
    releaseSelection.show(getSupportFragmentManager(), ReleaseSelectionDialog.TAG);
}
Also used : ReleaseSelectionDialog(org.musicbrainz.mobile.dialog.ReleaseSelectionDialog) DialogFragment(android.support.v4.app.DialogFragment)

Example 55 with DialogFragment

use of android.support.v4.app.DialogFragment in project Android-Developers-Samples by johnjohndoe.

the class StorageClientFragment method showImage.

/**
     * Given the URI of an image, shows it on the screen using a DialogFragment.
     *
     * @param uri the Uri of the image to display.
     */
public void showImage(Uri uri) {
    // BEGIN_INCLUDE (create_show_image_dialog)
    if (uri != null) {
        // Since the URI is to an image, create and show a DialogFragment to display the
        // image to the user.
        FragmentManager fm = getActivity().getSupportFragmentManager();
        ImageDialogFragment imageDialog = new ImageDialogFragment(uri);
        imageDialog.show(fm, "image_dialog");
    }
// END_INCLUDE (create_show_image_dialog)
}
Also used : FragmentManager(android.support.v4.app.FragmentManager)

Aggregations

DialogFragment (android.support.v4.app.DialogFragment)85 Fragment (android.support.v4.app.Fragment)31 FragmentTransaction (android.support.v4.app.FragmentTransaction)24 Bundle (android.os.Bundle)10 FragmentManager (android.support.v4.app.FragmentManager)9 View (android.view.View)8 SherlockDialogFragment (com.actionbarsherlock.app.SherlockDialogFragment)8 TextView (android.widget.TextView)7 AlertDialog (android.app.AlertDialog)5 DialogInterface (android.content.DialogInterface)4 OnClickListener (android.content.DialogInterface.OnClickListener)4 Intent (android.content.Intent)4 ListFragment (android.support.v4.app.ListFragment)4 AppCompatDialogFragment (android.support.v7.app.AppCompatDialogFragment)4 OnClickListener (android.view.View.OnClickListener)4 Button (android.widget.Button)4 ItemPinnedMessageDialogFragment (com.h6ah4i.android.example.advrecyclerview.common.fragment.ItemPinnedMessageDialogFragment)4 ProgressDialogFragment (com.wada811.android.dialogfragments.material.ProgressDialogFragment)4 Dialog (android.app.Dialog)3 ProgressDialogFragment (com.wada811.android.dialogfragments.traditional.ProgressDialogFragment)3