public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            var view = inflater.Inflate(Resource.Layout.MapLayout, container, false);

            mapFragment = view.FindViewById <MapView>(Resource.Id.map);
            mapFragment.OnCreate(savedInstanceState);
            lastUpdateText = view.FindViewById <TextView>(Resource.Id.UpdateTimeText);
            SetupInfoPane(view);
            flashBar           = new FlashBarController(view);
            streetViewFragment = pane.FindViewById <StreetViewPanoramaView>(Resource.Id.streetViewPanorama);
            streetViewFragment.OnCreate(savedInstanceState);

            return(view);
        }
        public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            var view = inflater.Inflate(Resource.Layout.MapLayout, container, false);

            mapFragment = view.FindViewById <MapView> (Resource.Id.map);
            mapFragment.OnCreate(savedInstanceState);
            lastUpdateText = view.FindViewById <TextView> (Resource.Id.UpdateTimeText);
            SetupInfoPane(view);
            flashBar           = new FlashBarController(view);
            streetViewFragment = view.FindViewById <StreetViewPanoramaView> (Resource.Id.streetViewPanorama);
            streetViewFragment.OnCreate(savedInstanceState);

            // For some reason, a recent version of GPS set their surfaceview to be drawn un-composited.
            FixupStreetViewSurface(streetViewFragment);

            return(view);
        }
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate (bundle);
            SetContentView (Resource.Layout.panorama);
            var lat = Intent.GetDoubleExtra ("lat", 37.7977);
            var lng = Intent.GetDoubleExtra ("lng", -122.40);

            latlng = new LatLng (lat, lng);
            streetViewPanoramaView = FindViewById<StreetViewPanoramaView> (Resource.Id.panorama);
            streetViewPanoramaView.OnCreate (bundle);
            streetViewPanoramaView.GetStreetViewPanoramaAsync (this);

            #if !DEBUG
            Xamarin.Insights.Track ("AppNav", new Dictionary<string,string> {
                { "page", "panorama" }
            });
            #endif
        }
Exemple #4
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            SetContentView(Resource.Layout.panorama);
            var lat = Intent.GetDoubleExtra("lat", 37.7977);
            var lng = Intent.GetDoubleExtra("lng", -122.40);

            latlng = new LatLng(lat, lng);
            streetViewPanoramaView = FindViewById <StreetViewPanoramaView> (Resource.Id.panorama);
            streetViewPanoramaView.OnCreate(bundle);
            streetViewPanoramaView.GetStreetViewPanoramaAsync(this);

                        #if !DEBUG
            Xamarin.Insights.Track("AppNav", new Dictionary <string, string> {
                { "page", "panorama" }
            });
                        #endif
        }
		public override View OnCreateView (LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
		{
			var view = inflater.Inflate (Resource.Layout.MapLayout, container, false);
			mapFragment = view.FindViewById<MapView> (Resource.Id.map);
			mapFragment.OnCreate (savedInstanceState);
			lastUpdateText = view.FindViewById<TextView> (Resource.Id.UpdateTimeText);
			SetupInfoPane (view);
			flashBar = new FlashBarController (view);
			streetViewFragment = pane.FindViewById<StreetViewPanoramaView> (Resource.Id.streetViewPanorama);
			streetViewFragment.OnCreate (savedInstanceState);

			return view;
		}
Exemple #6
0
		public override View OnCreateView (LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
		{
			var view = inflater.Inflate (Resource.Layout.MapLayout, container, false);
			mapFragment = view.FindViewById<MapView> (Resource.Id.map);
			mapFragment.OnCreate (savedInstanceState);
			lastUpdateText = view.FindViewById<TextView> (Resource.Id.UpdateTimeText);
			SetupInfoPane (view);
			flashBar = new FlashBarController (view);
			streetViewFragment = view.FindViewById<StreetViewPanoramaView> (Resource.Id.streetViewPanorama);
			streetViewFragment.OnCreate (savedInstanceState);

			// For some reason, a recent version of GPS set their surfaceview to be drawn un-composited.
			FixupStreetViewSurface (streetViewFragment);

			return view;
		}