Example #1
0
        public static CarFragment NewInstance()
        {
            var frag = new CarFragment {
                Arguments = new Bundle()
            };

            return(frag);
        }
Example #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="item"></param>
        /// <returns></returns>
        public bool OnNavigationItemSelected(IMenuItem item)
        {
            switch (item.ItemId)
            {
            case Resource.Id.navigation_home:
                FragmentManager.BeginTransaction().Replace(Resource.Id.content_frame, CarFragment.NewInstance()).Commit();
                return(true);

            case Resource.Id.navigation_dashboard:
                FragmentManager.BeginTransaction().Replace(Resource.Id.content_frame, _currentLoginFragment).Commit();
                return(true);

            case Resource.Id.navigation_notifications:
                FragmentManager.BeginTransaction().Replace(Resource.Id.content_frame, InfoFragment.NewInstance()).Commit();
                return(true);
            }
            return(false);
        }