【发布时间】:2014-08-05 15:56:23
【问题描述】:
我有一个:
List<Fixture> allFixture = new List<Fixture>();
每个灯具:
class Fixture
{
public int _id { get; set; }
public string Home { get; set; }
public DateTime matchDate { get; set; }
public string Away { get; set; }
}
我可以在 ListAdapter 上只显示 Home[]:
ListAdapter = new ArrayAdapter<string>(this, Android.Resource.Layout.SimpleListItem1, allFixture.Select(x => x.Home).ToArray())
但我想在下面显示如下内容:“Home vs Away” 和 DateTime。 我该怎么做?
【问题讨论】:
标签: c# android listview xamarin listadapter