• 2022-06-09 问题

    智慧职教: 下面程序是加载默认的fragment,请把程序补充完成void loadDefaultFragment(){    //开启一个事务    FragmentTransaction fragmentTransaction =    fragmentManager. ;       fragmentTransaction.add(R.id.userFrameLayout, addUserFragment);    fragmentTransaction.;    //提交事务    fragmentTransaction.commit();    fragmentNow = addUserFragment;}

    智慧职教: 下面程序是加载默认的fragment,请把程序补充完成void loadDefaultFragment(){    //开启一个事务    FragmentTransaction fragmentTransaction =    fragmentManager. ;       fragmentTransaction.add(R.id.userFrameLayout, addUserFragment);    fragmentTransaction.;    //提交事务    fragmentTransaction.commit();    fragmentNow = addUserFragment;}

  • 1