Closed rprouse closed 9 years ago
Check Android app for colour of text.
Code from the Android app,
float[] hsv = new float[3];
Color.colorToHSV(bg, hsv);
if ((hsv[2] > 0.6 && hsv[1] < 0.4)
|| (hsv[2] > 0.7 && hsv[0] > 40 && hsv[0] < 200)) {
hsv[2] = 0.4F;
textColor = Color.HSVToColor(hsv);
} else
textColor = WHITE;
The issue list is done.
Fixed by 9112c1f
Need to create an label control that displays a collection of labels. How do I set the text color based on the label color?