我有一個由API填充的列表,但現在我想分割成兩個列表,所以我可以在同一屏幕上填充兩個不同的列表視圖我該怎麼做?如何將列表拆分爲兩個以填充不同的列表視圖?
items = new List<TableItem>();
items.Add (new TableItem(){ SubProfileName = "Apple" });
items.Add (new TableItem(){ SubProfileName = "Pear" });
items.Add (new TableItem(){ SubProfileName = "Shoe" });
items.Add (new TableItem(){ SubProfileName = "Cake" });
items.Add (new TableItem(){ SubProfileName = "Vodka" });
items.Add (new TableItem(){ SubProfileName = "Alize" });
.......
.......
.......
listView = FindViewById<ListView>(Resource.Id.ListViewForSubProfiles);
listView.Adapter = new SelectProfileAdapter(this, items);
這取決於究竟你想分裂我t –
@我想在列表視圖之間平均分配 –