I use this code and it works in most cases for an xCLV items:
B4X:
lbldoctor.Color=Rnd(xui.Color_Black, xui.Color_White)
lbldoctor.textColor=Rnd(xui.Color_Black, xui.Color_White)
What is the best way to insure that there is always a contrast between the label color and its text color, so the...