transaction.addToBackStack(null)没有意义吗?
我的代码是:
anotherFragment anotherFragment = new anotherFragment();
android.app.FragmentManager fragmentManager = getFragmentManager();
FragmentTransaction transaction = fragmentManager.beginTransaction();
transaction.replace(R.id.right_container,anotherFragment);
transaction.addToBackStack(null);
transaction.commit();
出了什么问题?
答案 0 :(得分:0)
我认为这可能是Genymotion的错误
几分钟后,我在genymotion模拟器中重新启动它。它有效!