public ArticlesAdapter(Activity context, ArticlesFragment fragment) { try { HasStableIds = true; ActivityContext = context; AFragment = fragment; } catch (Exception e) { Console.WriteLine(e); } }
public void SwitchHome() { FragmentTransaction transaction = fm.BeginTransaction(); if (articlesFragment == null) { articlesFragment = new ArticlesFragment(); transaction.Add(Resource.Id.frameContent, articlesFragment).Commit(); } else { transaction.Show(articlesFragment).Commit(); } }
public void SwitchHome() { FragmentTransaction transaction = SupportFragmentManager.BeginTransaction(); if (articlesFragment == null) { articlesFragment = new ArticlesFragment(); transaction.Add(Resource.Id.frameContent, articlesFragment).CommitNowAllowingStateLoss(); } else { transaction.Show(articlesFragment).CommitNowAllowingStateLoss(); } }
public void SwitchArticles() { FragmentTransaction transaction = fm.BeginTransaction(); if (articleaFragment == null) { articleaFragment = new ArticlesFragment(); transaction.Add(Resource.Id.frameContent, articleaFragment).Commit(); } else { transaction.Show(articleaFragment).Commit(); } toolbar.Title = Resources.GetString(Resource.String.article); }