This seems simple. When click on a row in a xCustomListView, toggle the "include this" color (purposely not using the word "selected"). Not working. Log showing the correct value of olccSelected(Index).
B4X:
Dim clvOLCCList As CustomListView
...
Sub clvOLCCList_ItemClick (Index As Int, Value As Object)
Log("ItemClick " & olccSelected(Index))
Dim p As B4XView = clvOLCCList.GetPanel(Index)
Dim selColor As Int = Colors.RGB(144,238,144)
Dim omtColor As Int = Colors.RGB(211,211,211)
If olccSelected(Index) Then
p.Color = selColor
Else
p.Color = omtColor
End If
p.RemoveViewFromParent
clvOLCCList.ReplaceAt(Index,p,50dip,Value)
End Sub