예제 #1
0
        public static InfoFragment NewInstance()
        {
            var frag = new InfoFragment {
                Arguments = new Bundle()
            };

            return(frag);
        }
예제 #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);
        }