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); }); } }
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); }); } }
public override View GetView(int position, View convertView, ViewGroup parent) { var view = convertView as FavoriteView; if (view == null) { view = new FavoriteView(context); view.InitializeMapView(); } var station = stations [position]; view.Station = station; view.RefreshMapLocation(); string secondPart; view.StationName.Text = StationUtils.CutStationName(station.Name, out secondPart); view.SecondStationName.Text = secondPart; view.BikeNumber.Text = station.BikeCount.ToString(); view.SlotNumber.Text = station.Capacity.ToString(); return(view); }
public override View GetView (int position, View convertView, ViewGroup parent) { var view = convertView as FavoriteView; if (view == null) { view = new FavoriteView (context); view.InitializeMapView (); } var station = stations [position]; view.Station = station; view.RefreshMapLocation (); string secondPart; view.StationName.Text = StationUtils.CutStationName (station.Name, out secondPart); view.SecondStationName.Text = secondPart; view.BikeNumber.Text = station.BikeCount.ToString (); view.SlotNumber.Text = station.Capacity.ToString (); return view; }