Android Question question about colors

Douglas Farias

Expert
Licensed User
Longtime User
hi
in the b4a can i put colors in code on one string?

for exemple
string = casa

like html
<color = blue>ca<color = red>sa ?
existe color in line no b4a?
 

Douglas Farias

Expert
Licensed User
Longtime User
dim lala = "lalala" as string
1° in one string ? no label its possible?

2° its possible add 2 colors?
like this

lalala
 
Upvote 0

stevel05

Expert
Licensed User
Longtime User
If you want to change the colors (and other formatting) of strings in a label have a look at Andrews Richstring library, if you want to be able to click on the substrings have a look at Martins LabelExtras Library. I don't know if the two will work together, I haven't tried it.

If not, and that's what you need, you could always use a webview and HTML.
 
Upvote 0
Top