android.support.v4.app.FragmentTransaction required

前端 未结 6 1527
别跟我提以往
别跟我提以往 2021-02-05 03:54

entering in code like this:

FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();

comes up with this error \"androi

6条回答
  •  旧时难觅i
    2021-02-05 04:19

    getActivity() slove my issueandroid.app.FragmentManager fragmentManager = getActivity().getFragmentManager();

提交回复
热议问题