public static ItemDetailFragment NewInstance(Item item) { var fragment = new ItemDetailFragment(); Bundle args = new Bundle(); args.PutParcelable(Item.KEY, item); fragment.Arguments = args; return(fragment); }
public void OnItemSelected(Item item, int position) { if (listener != null) { listener.OnItemSelected(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) { if (listener != null) { listener.OnItemSelected(position); } currentSelectedPosition = position; ShowBackOnActionBar(true); ShowFragment(ItemDetailFragment.NewInstance(item)); }