public static ShowDescriptionFragment NewInstance(TVShow show) { ShowDescriptionFragment frag = new ShowDescriptionFragment(); Bundle args = new Bundle(); string serializedShow = JsonConvert.SerializeObject(show); args.PutString("myShowString", serializedShow); frag.Arguments = args; return frag; }
private void SetUpShowDescriptionFragment() { _showDescriptionFragment = (ShowDescriptionFragment) ChildFragmentManager.FindFragmentByTag("ShowDescriptionFragment"); if (_showDescriptionFragment == null) { _showDescriptionFragment = ShowDescriptionFragment.NewInstance(_myShow); var fm = ChildFragmentManager.BeginTransaction(); fm.Add(Resource.Id.frameForShowDescription, _showDescriptionFragment, "ShowDescriptionFragment"); fm.Commit(); } }
private void SetUpShowDescriptionFragment() { _showDescriptionFragment = (ShowDescriptionFragment) SupportFragmentManager.FindFragmentByTag("ShowDescriptionFragment"); if (_showDescriptionFragment == null) { _showDescriptionFragment = ShowDescriptionFragment.NewInstance(_myShow); FragmentTransaction fm = SupportFragmentManager.BeginTransaction(); fm.Add(Resource.Id.frameForShowDescription, _showDescriptionFragment, "ShowDescriptionFragment"); fm.Commit(); } //frameForNextEpisodeInfo }