PasswordFragmentDialog dialog = PasswordFragmentDialog
                    .newInstance(null);
            dialog.show(getFragmentManager(), dialog.getTag());
在fragment中要用dialogfragment