예제 #1
0
        public bool LoadFragment(int id)
        {
            Android.Support.V4.App.Fragment fragment = null;
            switch (id)
            {
            case Resource.Id.navigation_home:

                fragment = new FragmentHome(Intent.GetStringExtra("username"));
                break;

            case Resource.Id.navigation_dashboard:

                fragment = new FragmentProfile();
                break;

            case Resource.Id.navigation_notifications:

                fragment = new FragmentOrders();
                break;
            }

            if (fragment == null)
            {
                return(false);
            }
            else
            {
                SupportFragmentManager.BeginTransaction()
                .Replace(Resource.Id.HomeContent, fragment)
                .Commit();
                return(true);
            }
        }
예제 #2
0
 public OrderAdapter(FragmentOrders fragmentOrders, Task <List <Order> > task)
 {
 }