Ejemplo n.º 1
0
                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>();
                }
Ejemplo n.º 2
0
                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>();
                }
Ejemplo n.º 3
0
 public PortraitNewsArrayAdapter( NewsPrimaryFragment parentFragment )
 {
     ParentFragment = parentFragment;
 }
Ejemplo n.º 4
0
 public LandscapeNewsArrayAdapter( NewsPrimaryFragment parentFragment )
 {
     ParentFragment = parentFragment;
 }
Ejemplo n.º 5
0
 public PortraitNewsArrayAdapter(NewsPrimaryFragment parentFragment)
 {
     ParentFragment = parentFragment;
 }