protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            SetContentView(Resource.Layout.Main);

            var fm = SupportFragmentManager;

            if (fm.FindFragmentByTag(MapFragmentTag) == null)
            {
                var mapFragment = MapFragment.NewInstance();
                fm.BeginTransaction().Add(Resource.Id.map_container, mapFragment, MapFragmentTag).Commit();
            }
        }
 public static MapFragment NewInstance()
 {
     var fragment = new MapFragment();
     return fragment;
 }
示例#3
0
        public static MapFragment NewInstance()
        {
            var fragment = new MapFragment();

            return(fragment);
        }