5 TitleFragment中访问ContentFragment的方法,请补全下列代码?ContentFragment mContentFragment=(ContentFragment)getActivity(). ( ? ).findFragmentById(R.id.fragment_content); mContentFragment.setData(strTitle,strContent);
A: getSupportManager()
B: getManager()
C: getFrament()
D: getSupportFragmentManager()
A: getSupportManager()
B: getManager()
C: getFrament()
D: getSupportFragmentManager()
举一反三
- Fragment与Activity间通信时调用以下哪个方法可以在Fragment中获取Activity实例? A: findFragmentById B: findActivityById C: getFragment D: getActivity
- 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()
- 登陆用户名输入框为了获得保存的cookie值,请补全代码: <input name="username" type="text" id="username" value="<?php if(isset($_COOKIE["username"])) { .......? } ?>" />
- R错误ID系统主要包括R错误ID标签、R错误ID阅读器、R错误ID中间件、电子产品代码(EPC)信息系统和对象命名服务(ONS)等。()
- 【填空题】代码补全: .clearfix:after { content: ""; display: block; height: 0; clear: (); visibility: hidden; }