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();
            }
        }
Пример #2
0
 public static MapFragment NewInstance()
 {
     var fragment = new MapFragment();
     return fragment;
 }
Пример #3
0
        public static MapFragment NewInstance()
        {
            var fragment = new MapFragment();

            return(fragment);
        }