public static DetailsShowSeasonListFragment NewInstance(TVShow show, int index, bool highlightSelectedIndex) { DetailsShowSeasonListFragment frag = new DetailsShowSeasonListFragment(); Bundle args = new Bundle(); string serializedShow = JsonConvert.SerializeObject(show); args.PutString("myShowString", serializedShow); args.PutInt("index", index); args.PutBoolean("highlight", highlightSelectedIndex); frag.Arguments = args; return frag; }
private void SetUpListViewFragment() { _seasonListFragment = (DetailsShowSeasonListFragment) SupportFragmentManager.FindFragmentByTag("SeasonListFragment"); if (_seasonListFragment == null) { //easonListFragment = new DetailsShowSeasonListFragment(this, _selectedSeason, _myShow, true); FragmentTransaction fm = SupportFragmentManager.BeginTransaction(); fm.Add(Resource.Id.frameForListView, _seasonListFragment, "SeasonListFragment"); fm.Commit(); //_seasonListFragment.SetUpAdapter(); } else { Console.WriteLine("List View Frag Created Itself"); } }
private void SetUpSeasonListFragment() { _seasonListFragment = (DetailsShowSeasonListFragment) ChildFragmentManager.FindFragmentByTag("SeasonListFragment"); if (_seasonListFragment == null) { _seasonListFragment = DetailsShowSeasonListFragment.NewInstance(_myShow, 0, false); var fm = ChildFragmentManager.BeginTransaction(); fm.Add(Resource.Id.frameForSeasonList, _seasonListFragment, "SeasonListFragment"); fm.Commit(); } }
private void SetUpSeasonListFragment() { _seasonListFragment = (DetailsShowSeasonListFragment)SupportFragmentManager.FindFragmentByTag("SeasonListFragment"); if (_seasonListFragment == null) { _seasonListFragment = DetailsShowSeasonListFragment.NewInstance( _myShow, 0, false); FragmentTransaction fm = SupportFragmentManager.BeginTransaction(); fm.Add(Resource.Id.frameForSeasonList, _seasonListFragment, "SeasonListFragment"); fm.Commit(); } else { } // _seasonListFragment.SetShowSelectedIndex(false); }