The method replace(int, Fragment) in the type FragmentTransaction is not applica
2015-05-23 18:26
375 查看
1.应导入import
android.support.v4.app.Fragment;
2.应继承FragmentActivity;
3.以getSupportFragmentManager().beginTransaction().replace(R.id.show_container,
showMessageFragment).commit();
Activity:fragmentManager();
FragmentActivity:getSupportFragmentManager();
android.support.v4.app.Fragment;
2.应继承FragmentActivity;
3.以getSupportFragmentManager().beginTransaction().replace(R.id.show_container,
showMessageFragment).commit();
Activity:fragmentManager();
FragmentActivity:getSupportFragmentManager();
相关文章推荐
- The method replace(int, Fragment) in the type FragmentTransaction is not applica
- 错误:The method replace(int, Fragment) in the type FragmentTransaction is not applicable for the argum
- The method replace(int, Fragment) in the type FragmentTransaction is not applicable for the argument
- 错误:The method replace(int, Fragment) in the type FragmentTransaction is not applicable for the arguments (int, MyFragment)
- .replace(R.id.container, new User()).commit();/The method replace(int, Fragment) in the type FragmentTransaction is not app
- The method replace(int, Fragment, String) in the type FragmentTransaction is not applicable for the
- .replace(R.id.container, new User()).commit();/The method replace(int, Fragment) in the type FragmentTransaction is not app
- The method add(int, Fragment) in the type FragmentTransaction is not applica
- Android Error - The method replace(int, Fragment) in the type FragmentTransaction is not applicable
- The method replace(int, Fragment) in the type FragmentTransaction is not app 解决方法
- 错误:The method replace(int, Fragment) in the type FragmentTransaction is not applicable for the argum
- The method replace(int, Fragment, String) in the type FragmentTransaction is not applicable for the arguments (int, SettingFragment, String)
- The method replace(int, Fragment, String) in the type FragmentTransaction is not applicable...
- The method replace(int, Fragment) in the type FragmentTransaction is not applicable for the argument
- The method add(int, Fragment) in the type FragmentTransaction is not applicable for the arguments (i
- android学习——The method replace 4000 (int, Fragment) in the type FragmentTransaction is not applicable for t
- [真理永垂不朽]The method XXX in the type FragmentTransaction is not applicable for the arguments XXX
- The method add(Fragment) in the type ArrayList<Fragment> is not applicable for the arguments (ImageF
- The method setPositiveButton(int, DialogInterface.OnClickListener) in the type AlertDialog.Builder is not applicable for the arguments
- The method setStatus(int) in the type Goods is not applicable for the arguments (Integer)