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()
智慧职教: 通过FragmentManager的beginTransaction()可以开启FragmentTransaction。
智慧职教: 通过FragmentManager的beginTransaction()可以开启FragmentTransaction。
中国大学MOOC: FragmentTransaction 对象可以调用 方法提交事务。
中国大学MOOC: FragmentTransaction 对象可以调用 方法提交事务。
通过FragmentManager的beginTransaction()可以开启FragmentTransaction。 A: 正确 B: 错误
通过FragmentManager的beginTransaction()可以开启FragmentTransaction。 A: 正确 B: 错误
智慧职教: 下面程序是加载默认的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;}
下面哪个不是Fragment常用的类( ) A: Fragment B: FragmentManager C: FragmentTransaction D: NotificationManager
下面哪个不是Fragment常用的类( ) A: Fragment B: FragmentManager C: FragmentTransaction D: NotificationManager
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.
replace
replace
replace (v.)
replace (v.)
英译汉:replace
英译汉:replace