Sub CreateListItem(Text As String, Width As Int, Height As Int) As Panel
Dim p As Panel
p.Initialize("")
Dim stubLabel As Label 'Only used for the string measurement
stubLabel.Initialize("")
p.AddView(stubLabel, 0, 0, Width, 0)
Activity.AddView(p, 0, 0, Width, Max(60dip, su.MeasureMultilineTextHeight(stubLabel, Text)))
p.LoadLayout("CellItem")
lblMessage.Text = Text
stubLabel.RemoveView
p.RemoveView
Label1.Text = DateTime.Time(DateTime.Now)
Return p
End Sub