示例#1
0
 @Override
 protected int onNextStep() {
   // TODO
   BaseFragment f = TutorialCurrencyFragment.newInstance();
   getChildFragmentManager()
       .beginTransaction()
       .replace(R.id.container_V, f, FRAGMENT_CURRENT)
       .addToBackStack(null)
       .commit();
   return 1;
 }
示例#2
0
 @Override
 protected void restoreOrInit(long itemId, Bundle savedInstanceState) {
   if (getChildFragmentManager().findFragmentByTag(FRAGMENT_CURRENT) == null) {
     BaseFragment f =
         getStepsCount() == 2
             ? TutorialLanguageFragment.newInstance()
             : TutorialCurrencyFragment.newInstance();
     getChildFragmentManager()
         .beginTransaction()
         .replace(R.id.container_V, f, FRAGMENT_CURRENT)
         .commit();
   }
 }