Ejemplo n.º 1
0
        private TouristSpotCardAdapter CreateTouristSpotCardAdapter()
        {
            var adapter = new TouristSpotCardAdapter(this);

            adapter.AddAll(CreateTouristSpots());
            return(adapter);
        }
Ejemplo n.º 2
0
 private void Reload()
 {
     _cardStackView.Visibility = ViewStates.Gone;
     _progressBar.Visibility   = ViewStates.Visible;
     new Handler().PostDelayed(() =>
     {
         _adapter = CreateTouristSpotCardAdapter();
         _cardStackView.SetAdapter(_adapter);
         _cardStackView.Visibility = ViewStates.Visible;
         _progressBar.Visibility   = ViewStates.Gone;
     }, 1000);
 }