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); }
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.master_detail); }
public void OnItemSelected(Item item, int position) { currentSelectedPosition = position; ShowBackOnActionBar(true); ShowFragment(ItemDetailFragment.NewInstance(item)); }