Show DialogFragment from another DialogFragment

前端 未结 9 749
春和景丽
春和景丽 2021-02-05 10:33

I have a DialogFragment that displays a list of options to the user, one of these options is \"Delete\" option, when the user presses the delete option I want to sh

9条回答
  •  渐次进展
    2021-02-05 10:53

    You can call a DialogFragment from Another DialogFragment.

    NewDialogFragment newDialogFragment= new NewDialogFragment();
    FragmentTransaction transaction = getActivity().getSupportFragmentManager().beginTransaction();
    newDialogFragment.show(transaction, "New_Dialog_Fragment");
    

提交回复
热议问题