protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); // Set our view from the "main" layout resource SetContentView(Resource.Layout.Main); var seriesAdapter = new SeriesAdapter(this); var seriesListView = FindViewById<ListView>(Resource.Id.seriesListView); seriesListView.DrawingCacheEnabled = false; seriesListView.Adapter = seriesAdapter; //seriesListView.ItemClick += new EventHandler<ItemEventArgs>(seriesListView_ItemClick); //4.0.6 seriesListView.ItemClick += new EventHandler<AdapterView.ItemClickEventArgs>(seriesListView_ItemClick); //4.1.1 }
protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); // Set our view from the "main" layout resource SetContentView(Resource.Layout.Main); var seriesAdapter = new SeriesAdapter(this); var seriesListView = FindViewById <ListView>(Resource.Id.seriesListView); seriesListView.DrawingCacheEnabled = false; seriesListView.Adapter = seriesAdapter; //seriesListView.ItemClick += new EventHandler<ItemEventArgs>(seriesListView_ItemClick); //4.0.6 seriesListView.ItemClick += new EventHandler <AdapterView.ItemClickEventArgs>(seriesListView_ItemClick); //4.1.1 }