protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); ListAdapter = new TestListAdapter(this, new List<TestItem> { new TestItem{Name = "Test1", Selected = true}, new TestItem{Name = "Test2", Selected = false}, new TestItem{Name = "Test3", Selected = true}, }); // Set our view from the "main" layout resource //SetContentView(Resource.Layout.TestItem); }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); ListAdapter = new TestListAdapter(this, new List <TestItem> { new TestItem { Name = "Test1", Selected = true }, new TestItem { Name = "Test2", Selected = false }, new TestItem { Name = "Test3", Selected = true }, }); // Set our view from the "main" layout resource //SetContentView(Resource.Layout.TestItem); }