void ProcessLoginDetails(object sender, EventArgs e) { loginBtn.Enabled = false; password.Enabled = false; username.Enabled = false; statusProgress.Alpha = 0; statusProgress.Visibility = ViewStates.Visible; if (statusText.Visibility == ViewStates.Visible) { statusText.AlphaAnimate(0, endAction: () => { statusText.Visibility = ViewStates.Gone; statusProgress.AlphaAnimate(1); }); } else { statusProgress.Animate().Alpha(1).Start(); } newCredentials.SetResult(new RentalCrendentials { Username = username.Text, Password = password.Text }); }
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); } }