0
transaction.addToBackStack(null)沒有意義?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();
有什麼不對?