Java Code Examples for androidx.fragment.app.DialogFragment#getDialog()
The following examples show how to use
androidx.fragment.app.DialogFragment#getDialog() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ActivityWithDialog.java From CommonUtils with Apache License 2.0 | 4 votes |
@Override public final void showDialog(@NonNull DialogFragment dialog, @Nullable String tag) { FragmentManager manager = getSupportFragmentManager(); dialog.show(manager, tag); mDialog = dialog.getDialog(); }
Example 2
Source File: SimpleDialogAnimation.java From Alligator with MIT License | 4 votes |
@Override public void applyAfterShowing(@NonNull DialogFragment dialogFragment) { if (dialogFragment.getDialog() != null && dialogFragment.getDialog().getWindow() != null) { dialogFragment.getDialog().getWindow().setWindowAnimations(mWindowAnimationsStyleRes); } }
Example 3
Source File: DialogUtils.java From DevUtils with Apache License 2.0 | 2 votes |
/** * 获取 Dialog 是否显示 * @param dialogFragment {@link DialogFragment} * @return {@code true} yes, {@code false} no */ public static boolean isShowing(final DialogFragment dialogFragment) { return (dialogFragment != null && dialogFragment.getDialog() != null && dialogFragment.getDialog().isShowing()); }