我尝试了几种方法将List元素绑定到ListView,但是没有成功。我总是收到错误消息“无法转换列表
List<string> numbersListString= new List<string> {
"One",
"Two",
"Three",
"Four",
"Five",
"Six",
};
listView numbersListView = root.FindViewById<ListView>(Resource.Id.numbers);
var adapter = new ArrayAdapter<string>(Context,
Android.Resource.Layout.ActivityListItem, numbersListString);
adapter.AddAll(Android.Resource.Layout.ActivityListItem);
numbersListView.Adapter = adapter;
原因: