public NewsTask(NavbarFragment navFragment) : base(navFragment) { // create our fragments (which are basically equivalent to iOS ViewControllers) // Note: Fragment Tags must be the fully qualified name of the class, including its namespaces. // This is how Android will find it when searching. MainPage = navFragment.FragmentManager.FindFragmentByTag("Droid.Tasks.News.NewsPrimaryFragment") as NewsPrimaryFragment; if (MainPage == null) { MainPage = new NewsPrimaryFragment(); } MainPage.ParentTask = this; DetailsPage = navFragment.FragmentManager.FindFragmentByTag("Droid.Tasks.News.NewsDetailsFragment") as NewsDetailsFragment; if (DetailsPage == null) { DetailsPage = new NewsDetailsFragment(); } DetailsPage.ParentTask = this; WebFragment = new TaskWebFragment( ); WebFragment.ParentTask = this; // setup a list we can use to cache the news, so should it update we don't use the wrong set. News = new List <RockNews>(); }
public NewsTask( NavbarFragment navFragment ) : base(navFragment) { // create our fragments (which are basically equivalent to iOS ViewControllers) MainPage = new NewsPrimaryFragment( ); MainPage.ParentTask = this; DetailsPage = new NewsDetailsFragment( ); DetailsPage.ParentTask = this; WebFragment = new TaskWebFragment( ); WebFragment.ParentTask = this; // setup a list we can use to cache the news, so should it update we don't use the wrong set. News = new List<RockNews>(); }
public PortraitNewsArrayAdapter( NewsPrimaryFragment parentFragment ) { ParentFragment = parentFragment; }
public LandscapeNewsArrayAdapter( NewsPrimaryFragment parentFragment ) { ParentFragment = parentFragment; }
public PortraitNewsArrayAdapter(NewsPrimaryFragment parentFragment) { ParentFragment = parentFragment; }