private View GetCommentTemplate(int position, Comment comment, View convertView) { convertView = LayoutInflater.Inflate(Android.Resource.Layout.SimpleListItem2, null); convertView.FindViewById<TextView>(Android.Resource.Id.Text1).Text = comment.Text; convertView.FindViewById<TextView>(Android.Resource.Id.Text2).Text = comment.InputDate.ToString(); return convertView; }
private void BindCommentCell(UITableViewCell cell, Comment comment, NSIndexPath path) { cell.TextLabel.Text = comment.Text; cell.DetailTextLabel.Text = comment.InputDate.ToString(); }