Private Sub AddItemsToList(li As List, full As String)
If li.IsInitialized = False Then Return
Dim rs As RichString
rs.Initialize("")
For i = 0 To li.Size - 1
Dim item As String
item = li.Get(i)
item = item.ToLowerCase
If full.Length > MAX_LIMIT And item.Contains(full) = False Then
Continue
End If
rs.Text = li.Get(i)
If full.Length > 0 Then
Dim ii As Int = item.IndexOf(full)
rs.Color(Colors.Red, ii, ii + full.Length)
End If
Dim tc As TableCell = lv.AddSingleLine("")
Dim p As Panel
p.Initialize("")
p.Color = Colors.Blue
p.SetLayoutAnimated(0, 1, 0, 0, lv.Width, lv.RowHeight)
Dim lbl As Label
lbl.Initialize("")
rs.SetToLabel(lbl)
p.AddView(lbl, 5, 2, lv.Width, lv.RowHeight)
tc.CustomView = p
Next
lv.ReloadAll
End Sub