public override void OnActivityCreated(Bundle savedInstanceState)
 {
     base.OnActivityCreated(savedInstanceState);
     indicator.SetViewPager(viewPager);
     if (TranslatorSave.NewInstance().GetCountWords == "one or null")
     {
         pagerAdapter = new Adapters.TranslatePagesAdapter(Activity.SupportFragmentManager, list, 1);
     }
     else
     {
         list.Add(new WordsListFragment());
         pagerAdapter = new Adapters.TranslatePagesAdapter(Activity.SupportFragmentManager, list, 2);
     }
     viewPager.Adapter = pagerAdapter;
     viewPager.SetCurrentItem(TranslatorSave.NewInstance().GetPosition, true);
 }
Ejemplo n.º 2
0
 public override void OnCreate(Bundle savedInstanceState)
 {
     base.OnCreate(savedInstanceState);
     saveText = TranslatorSave.NewInstance();
 }
 public override void OnStop()
 {
     base.OnStop();
     TranslatorSave.NewInstance().SetPosition(viewPager.CurrentItem);
 }
Ejemplo n.º 4
0
 public override void OnCreate(Bundle savedInstanceState)
 {
     base.OnCreate(savedInstanceState);
     translateWordsAdapter = new TranslateWordsAdapter();
     saveText = TranslatorSave.NewInstance();
 }