Пример #1
0
		public bool OnNavigationItemSelected (int itemPosition, long itemId)
		{
			Fragment fragment = null;
			switch (itemPosition)
			{
			case 0:
				fragment = new CodeProjectMemberListFragment ();
				currentScreen = Screen.MemberList;
				break;
			case 1:
				fragment = new CodeProjectArticleFeedFragment ();
				currentScreen = Screen.ArticleFeed;
				break;
			case 2:
				fragment = new CodeProjectLoungeFeedFragment ();
				currentScreen = Screen.LoungFeed;
				break;
			}

			this.FragmentManager.BeginTransaction()
				.Replace(Resource.Id.frameLayoutFragmentContainer, fragment).Commit();

			this.InvalidateOptionsMenu ();

			return true;
		}
Пример #2
0
        public bool OnNavigationItemSelected(int itemPosition, long itemId)
        {
            Fragment fragment = null;

            switch (itemPosition)
            {
            case 0:
                fragment      = new CodeProjectMemberListFragment();
                currentScreen = Screen.MemberList;
                break;

            case 1:
                fragment      = new CodeProjectArticleFeedFragment();
                currentScreen = Screen.ArticleFeed;
                break;

            case 2:
                fragment      = new CodeProjectLoungeFeedFragment();
                currentScreen = Screen.LoungFeed;
                break;
            }

            this.FragmentManager.BeginTransaction()
            .Replace(Resource.Id.frameLayoutFragmentContainer, fragment).Commit();

            this.InvalidateOptionsMenu();

            return(true);
        }