public static ToWatchMoviesFragment NewInstance() { var frag1 = new ToWatchMoviesFragment(); Bundle bundle = new Bundle(); //bundle.PutIntArray("movieIds", Globals.StarredMovies.ToArray()); frag1.Arguments = bundle; return(frag1); }
protected override void OnCreate(Bundle bundle) { InitView(Resource.Layout.PopularPeople, bundle); adRenderer.RenderAd(FindViewById <AdView>(Resource.Id.adView)); Title = "Watch List"; var fragmentTransaction = SupportFragmentManager.BeginTransaction(); fragmentTransaction.Add(Resource.Id.frameLayout1, ToWatchMoviesFragment.NewInstance()); fragmentTransaction.Commit(); }