Public Sub Update
bc.DrawRect(bc.TargetRect, xui.Color_Transparent, True, 0)
Dim h As Int = Min(iv.Height, iv.Width)
Dim r As Float = (h - 6dip) / 6
UpdatedCenters.Clear
For i = 0 To Centers.Size - 1
Dim c() As Float = Centers.Get(i)
Dim cx As Float = c(0) * r + h / 2
Dim cy As Float = c(1) * r + h / 2
Dim lbl As B4XView = labels.Get(i)
If i <= Items.Size - 1 Then
'lbl.Text = Items.Get(i)
XUIViewsUtils.SetTextOrCSBuilderToLabel(lbl, Items.Get(i))
lbl.SetLayoutAnimated(0, iv.Left + (cx - r), iv.Top + (cy - r), (r * 2), (r * 2))
UpdatedCenters.Add(Array As Float(cx, cy))
DrawCell(cx + 0.5, cy + 0.5, r + 0.5, FillColor, 8dip)
Else
lbl.Text = ""
End If
Next
bc.SetBitmapToImageView(bc.Bitmap, iv)
End Sub