• 2022-06-09 问题

    7 Fragment可以实现动态加载,下面是实现动态加载的过程,请补全代码?private void replaceFragment(int layout,Fragment fragment){ FragmentManager manager=getSupportFragmentManager(); FragmentTransaction fragmentTransaction=manager.beginTransaction(); fragmentTransaction.replace(layout,fragment); fragmentTransaction.addToBackStack(null); ( ? ); } A: fragmentTransaction.getFragmentById() B: fragmentTransaction.getAcitivity() C: fragmentTransaction.commitFragment() D: fragmentTransaction.commit()

    7 Fragment可以实现动态加载,下面是实现动态加载的过程,请补全代码?private void replaceFragment(int layout,Fragment fragment){ FragmentManager manager=getSupportFragmentManager(); FragmentTransaction fragmentTransaction=manager.beginTransaction(); fragmentTransaction.replace(layout,fragment); fragmentTransaction.addToBackStack(null); ( ? ); } A: fragmentTransaction.getFragmentById() B: fragmentTransaction.getAcitivity() C: fragmentTransaction.commitFragment() D: fragmentTransaction.commit()

  • 2021-04-14 问题

    智慧职教: 通过FragmentManager的beginTransaction()可以开启FragmentTransaction。

    智慧职教: 通过FragmentManager的beginTransaction()可以开启FragmentTransaction。

  • 2022-06-07 问题

    中国大学MOOC: FragmentTransaction 对象可以调用 方法提交事务。

    中国大学MOOC: FragmentTransaction 对象可以调用 方法提交事务。

  • 2022-06-09 问题

    通过FragmentManager的beginTransaction()可以开启FragmentTransaction。 A: 正确 B: 错误

    通过FragmentManager的beginTransaction()可以开启FragmentTransaction。 A: 正确 B: 错误

  • 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;}

  • 2022-06-08 问题

    下面哪个不是Fragment常用的类( ) A: Fragment B: FragmentManager C: FragmentTransaction D: NotificationManager

    下面哪个不是Fragment常用的类( ) A: Fragment B: FragmentManager C: FragmentTransaction D: NotificationManager

  • 2022-06-15 问题

    Usually replacement of the fan blade should be ( ). A: Replace all the 36 blades. B: Replace individual blade. C: Replace the damaged blade and the other two located 120 degree position. D: Replace in pairs.

    Usually replacement of the fan blade should be ( ). A: Replace all the 36 blades. B: Replace individual blade. C: Replace the damaged blade and the other two located 120 degree position. D: Replace in pairs.

  • 2022-06-07 问题

    replace

    replace

  • 2022-06-07 问题

    replace (v.)

    replace (v.)

  • 2022-06-07 问题

    英译汉:replace

    英译汉:replace

  • 1 2 3 4 5 6 7 8 9 10