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; }
public static MapFragment NewInstance() { var fragment = new MapFragment(); return(fragment); }