コード例 #1
0
        protected override void OnCreate (Bundle bundle)
        {
            base.OnCreate (bundle);

            // Set our view from the "main" layout resource
            SetContentView (Resource.Layout.Main);
            
            var contactsAdapter = new ContactsAdapter (this);       
            var contactsListView = FindViewById<ListView> (Resource.Id.contactsListView);      
            contactsListView.Adapter = contactsAdapter;
        }
コード例 #2
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

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

            var contactsAdapter  = new ContactsAdapter(this);
            var contactsListView = FindViewById <ListView> (Resource.Id.contactsListView);

            contactsListView.Adapter = contactsAdapter;
        }