Example usage for android.support.v4.app DialogFragment show

List of usage examples for android.support.v4.app DialogFragment show

Introduction

In this page you can find the example usage for android.support.v4.app DialogFragment show.

Prototype

public int show(FragmentTransaction transaction, String tag) 

Source Link

Document

Display the dialog, adding the fragment using an existing transaction and then committing the transaction.

Usage

From source file:com.feathercoin.wallet.feathercoin.util.BitmapFragment.java

public static void show(final FragmentManager fm, final Bitmap bitmap) {
    final DialogFragment newFragment = instance(bitmap);
    newFragment.show(fm, FRAGMENT_TAG);
}

From source file:cc.mintcoin.wallet.util.BitmapFragment.java

public static void show(final FragmentManager fm, @Nonnull final Bitmap bitmap) {
    final DialogFragment newFragment = instance(bitmap);
    newFragment.show(fm, FRAGMENT_TAG);
}

From source file:com.hamradiocoin.wallet.ui.HelpDialogFragment.java

public static void page(final FragmentManager fm, final int messageResId) {
    final DialogFragment newFragment = HelpDialogFragment.instance(messageResId);
    newFragment.show(fm, FRAGMENT_TAG);
}

From source file:com.bushstar.htmlcoin_android_wallet.ui.HelpDialogFragment.java

public static void page(final FragmentManager fm, @Nonnull final int messageResId) {
    final DialogFragment newFragment = HelpDialogFragment.instance(messageResId);
    newFragment.show(fm, FRAGMENT_TAG);
}

From source file:com.dm.material.dashboard.candybar.fragments.dialog.OtherAppsFragment.java

public static void showOtherAppsDialog(@NonNull FragmentManager fm) {
    FragmentTransaction ft = fm.beginTransaction();
    Fragment prev = fm.findFragmentByTag(TAG);
    if (prev != null) {
        ft.remove(prev);//from w  w w .j a  v  a 2  s.  c om
    }

    try {
        DialogFragment dialog = OtherAppsFragment.newInstance();
        dialog.show(ft, TAG);
    } catch (IllegalStateException | IllegalArgumentException ignored) {
    }
}

From source file:com.dm.material.dashboard.candybar.fragments.dialog.ChangelogFragment.java

public static void showChangelog(FragmentManager fm) {
    FragmentTransaction ft = fm.beginTransaction();
    Fragment prev = fm.findFragmentByTag(TAG);
    if (prev != null) {
        ft.remove(prev);//from  ww w. j a v  a  2s .  c o m
    }

    try {
        DialogFragment dialog = ChangelogFragment.newInstance();
        dialog.show(ft, TAG);
    } catch (IllegalArgumentException | IllegalStateException ignored) {
    }
}

From source file:com.maxwen.wallpaper.board.fragments.dialogs.FilterFragment.java

public static void showFilterDialog(FragmentManager fm) {
    FragmentTransaction ft = fm.beginTransaction();
    Fragment prev = fm.findFragmentByTag(TAG);
    if (prev != null) {
        ft.remove(prev);/*  ww w. j a  v  a 2 s .  c  o m*/
    }

    try {
        DialogFragment dialog = FilterFragment.newInstance();
        dialog.show(ft, TAG);
    } catch (IllegalArgumentException | IllegalStateException ignored) {
    }
}

From source file:com.ultramegasoft.flavordex2.dialog.AboutDialog.java

/**
 * Show the dialog.//from w  w  w .j a v  a2 s.  com
 *
 * @param fm The FragmentManager to use
 */
public static void showDialog(@NonNull FragmentManager fm) {
    final DialogFragment fragment = new AboutDialog();
    fragment.show(fm, TAG);
}

From source file:de.schildbach.wallet.ui.ArchiveBackupDialogFragment.java

public static void show(final FragmentManager fm, final File backupFile) {
    final DialogFragment newFragment = instance(backupFile);
    newFragment.show(fm, FRAGMENT_TAG);
}

From source file:de.schildbach.wallet.ui.HelpDialogFragment.java

public static void page(final FragmentManager fm, final String page) {
    final DialogFragment newFragment = HelpDialogFragment.instance(page);
    newFragment.show(fm, FRAGMENT_TAG);
}