/// <summary> /// Populates the table view. /// </summary> private void PopulateTableView(List <GatheringItem> items) { var view = _view.FindViewById <HorizontalScrollView>(Resource.Id.gathering_scrollview); view.RemoveAllViews(); var table = new TableLayout(_view.Context); table.AddNewRow(GatheringItem.GetRelevantPropertyNames()); items.ForEach(x => table.AddNewRow(x.ToStringArray(), x.Gatherer == Enums.Gatherer.Botanist ? Color.ForestGreen : Color.IndianRed)); view.AddView(table); view.RequestLayout(); }