Inheritance: BaseAdapter
示例#1
0
 protected override void OnCreate(Bundle savedInstanceState) {
     base.OnCreate(savedInstanceState);
     SetContentView(Resource.Layout.activity_main);
     listView = FindViewById<ListView>(Resource.Id.activity_main_listview);
     var candyAdapter = new CandyAdapter(this);
     listView.Adapter = candyAdapter;
 }
示例#2
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.activity_main);
            listView = FindViewById <ListView>(Resource.Id.activity_main_listview);
            var candyAdapter = new CandyAdapter(this);

            listView.Adapter = candyAdapter;
        }