리스트뷰 출력
리스트뷰 출력
protected override void OnCreate (Bundle bundle)
{
base.OnCreate (bundle);
SetContentView (Resource.Layout.Main);
Button button = FindViewById<Button> (Resource.Id.myButton);
ListView listview1 = FindViewById<ListView> (Resource.Id.listView1);
button.Click += delegate {
string[] items = new string[] { "Vegetables","Fruits","Flower Buds","Legumes","Bulbs","Tubers" };
ArrayAdapter<String> ListAdapter = new ArrayAdapter<String>(this, Android.Resource.Layout.SimpleListItem1, items);
listview1.Adapter = ListAdapter;
};
}