Android Question font change color

emexes

Expert
Licensed User
Using de property textcolor
Great minds think alike :)

I used:
B4X:
Sub Button1_Click
  
    If Rnd(1, 3) = 1 Then
        EditText1.TextColor = Colors.Black
    Else
        EditText1.TextColor = Colors.RGB(Rnd(0, 255), Rnd(0, 255), Rnd(0, 255))
    End If

End Sub
to demonstrate use of the Colors.* built-in color constants, and building colors from RGB components, to get eg this:

upload_2019-6-27_18-24-32.png
 
Upvote 0

emexes

Expert
Licensed User
Note that you can set/change that property from within Designer too, as well as from within your program.

And the .Color property changes the background color.
 
Upvote 0

emexes

Expert
Licensed User
This must be some incredible multi-hued extravaganza you're coding up, what with all these colorful questions!
 
Upvote 0
Top