private TouristSpotCardAdapter CreateTouristSpotCardAdapter() { var adapter = new TouristSpotCardAdapter(ApplicationContext); adapter.AddAll(CreateTouristSpots()); return(adapter); }
private async Task ReloadAsync() { try { cardStackView.Visibility = ViewStates.Gone; progressBar.Visibility = ViewStates.Visible; await Task.Delay(1000); adapter = CreateTouristSpotCardAdapter(); cardStackView.SetAdapter(adapter); cardStackView.Visibility = ViewStates.Visible; progressBar.Visibility = ViewStates.Gone; } catch (Exception e) { Console.WriteLine(e.Message); Console.WriteLine(e.StackTrace); } }