【发布时间】:2018-01-12 18:42:22
【问题描述】:
我想给 ListView 添加一个 ListView ClickListener,但是不知道怎么做? 这是我创建适配器的代码的结尾:
//Get all the values from Name, and convert it to an Array
string[] NamesArray = coins.Select(c => c.Name).ToArray();
//Fill the DataSource of the ListView with the Array of Names
ArrayAdapter<string> adapter = new ArrayAdapter<string>(this, Android.Resource.Layout.SimpleListItem1, NamesArray);
//Bind DataSource to ListView
ListviewCoinNames.Adapter = adapter;
【问题讨论】:
标签: c# android visual-studio listview xamarin