智慧职教: 下面程序是加载默认的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;}
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: 错误
A ____ is a person who ____ _____. A: crime; commit; criminal B: commit; criminal; crimes C: commit; crimes; criminal D: criminal; commits; crimes
A ____ is a person who ____ _____. A: crime; commit; criminal B: commit; criminal; crimes C: commit; crimes; criminal D: criminal; commits; crimes
下面哪个不是Fragment常用的类( ) A: Fragment B: FragmentManager C: FragmentTransaction D: NotificationManager
下面哪个不是Fragment常用的类( ) A: Fragment B: FragmentManager C: FragmentTransaction D: NotificationManager
commit crimes
commit crimes
在使用SharedPreference对应的安全属性是? A: commited() B: commit() C: tocommit() D: Commit()
在使用SharedPreference对应的安全属性是? A: commited() B: commit() C: tocommit() D: Commit()
在SQL语言中事务结束的命令是()。 A: ENDTRANSACTION B: COMMIT C: ROLLBACK D: COMMIT或ROLLBACK
在SQL语言中事务结束的命令是()。 A: ENDTRANSACTION B: COMMIT C: ROLLBACK D: COMMIT或ROLLBACK