Example #1
0
		internal async void LoadMap (GeoPoint point, FavoriteView view, ImageView mapView, long version)
		{
			var url = MakeMapUrl (point);
			var bmp = await LoadInternal (url, MapCache);
			if (bmp != null && view.VersionNumber == version) {
				mapView.AlphaAnimate (0, duration: 150, endAction: () => {
					mapView.SetImageDrawable (new RoundCornerDrawable (bmp));
					mapView.AlphaAnimate (1, duration: 250);
				});
			}
		}
Example #2
0
        internal async void LoadMap(GeoPoint point, FavoriteView view, ImageView mapView, long version)
        {
            var url = MakeMapUrl(point);
            var bmp = await LoadInternal(url, MapCache);

            if (bmp != null && view.VersionNumber == version)
            {
                mapView.AlphaAnimate(0, duration: 150, endAction: () => {
                    mapView.SetImageDrawable(new RoundCornerDrawable(bmp));
                    mapView.AlphaAnimate(1, duration: 250);
                });
            }
        }
Example #3
0
		internal async void LoadStreetView (LatLng location, HubwayMapFragment frag, long stationID, ProgressBar spinner, ImageView img)
		{
			var url = MakeStreetViewUrl (img, location);
			var bmp = await LoadInternal (url, StreetViewCache);
			if (bmp != null && frag.CurrentShownId == stationID) {
				img.SetImageDrawable (new RoundCornerDrawable (bmp, cornerRadius: 3));
				img.Visibility = Android.Views.ViewStates.Visible;
				spinner.AlphaAnimate (0, duration: 250);
				img.AlphaAnimate (1, duration: 250);
			}
		}