internal static ItemDetailFragment NewInstance(Item item)
        {
            var fragment = new ItemDetailFragment();
            var args     = new Bundle();

            args.PutString("item", JsonConvert.SerializeObject(item ?? new Item(string.Empty, string.Empty)));
            fragment.Arguments = args;
            return(fragment);
        }
Beispiel #2
0
 public void OnItemSelected(Item item, int position)
 {
     currentSelectedPosition = position;
     // Showing ItemDetailFragment on the right screen when the app is in spanned mode
     ShowFragment(ItemDetailFragment.NewInstance(item), Resource.Id.list_detail);
 }
Beispiel #3
0
 public void OnItemSelected(Item item, int position)
 {
     currentSelectedPosition = position;
     ShowBackOnActionBar(true);
     ShowFragment(ItemDetailFragment.NewInstance(item));
 }