How to put items in a Listview

1

The add method does not appear, I'm new so I have no idea what it can be

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

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

        ListView lista = FindViewById<ListView>(Resource.Id.listView1);
        lista.Add();

    }
    
asked by anonymous 09.10.2016 / 22:55

2 answers

1

link

Here are the examples.

You need the listview and add an Adapter with setAdapter ();

See the example, it's a simple thing.

    
10.10.2016 / 06:29
1

The class ListView does not have Add . You first need to create a List or ArrayList so that you can list within your ListView .

    
10.10.2016 / 15:51