Пример #1
0
        private Dictionary <string, string> _imageEventDictionary = new Dictionary <string, string>(); // Image Url / Event Url

        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.activity_main);

            CrawlWebPage();

            _adapter = new EventListAdapter(this);
            foreach (var imageEventPair in _imageEventDictionary)
            {
                _adapter.AddItem(imageEventPair.Key);
            }

            listView         = (ListView)FindViewById(Resource.Id.eventList);
            listView.Adapter = _adapter;

            listView.ItemClick += ListView_ItemClick;
        }
Пример #2
0
        public void UpdateList()
        {
            EventListAdapter adapter = new EventListAdapter(Activity, Eventlist, this.FragmentManager);

            lstEvent.Adapter = adapter;
        }