public override Android.Support.V4.App.Fragment GetItem(int position)
 {
     return
         (FlashCardFragment
          .CreateInstance(
              this.deck[position].Problem,
              this.deck[position].Answer)
          as Android.Support.V4.App.Fragment);
 }
Example #2
0
        public static FlashCardFragment CreateInstance(string question, string answer)
        {
            var bundle = new Bundle();

            bundle.PutString(FlashCardQuestion, question);
            bundle.PutString(FlashCardAnswer, answer);

            var fragment = new FlashCardFragment();

            fragment.Arguments = bundle;

            return(fragment);
        }