Exemplo n.º 1
0
        private void AddFirst()
        {
            var spots = ExtractRemainingTouristSpots();

            spots.Insert(0, CreateTouristSpot());
            _adapter.Clear();
            _adapter.AddAll(spots);
            _adapter.NotifyDataSetChanged();
        }
Exemplo n.º 2
0
        private TouristSpotCardAdapter CreateTouristSpotCardAdapter()
        {
            var adapter = new TouristSpotCardAdapter(this);

            adapter.AddAll(CreateTouristSpots());
            return(adapter);
        }