Android Question label color change

gjoisa

Active Member
Licensed User
Longtime User
I tried several times this . changed the color of label in designer properties . but in actual app while I install to device it does not changes . Is it a bug or am I doing some mistakes ?
 

emexes

Expert
Licensed User
Did you set the alpha level (opacity) to eg 255? Labels default to 0 (transparent) so that you can see the background that is behind it. Set it to 255 if you'd like the label to have its own solid background, or eg 80 for a translucent effect.

upload_2019-7-15_10-39-43.png
 
Last edited:
Upvote 0

emexes

Expert
Licensed User
Alpha level is the matter I missed . Thank you
No worries. I think most of us discovered alpha the hard way. I was going to mention that you should search the forum before posting a question, but luckily I tested that theory first, and discovered that this particular topic is not so easy to find if you don't already know the answer (ie, keyword: alpha)

upload_2019-7-15_18-18-38.png


However, in that list there is a post that might be of use to you in the near future, which mentions label borders and generally making your UI more dashing:

https://www.b4x.com/android/forum/threads/change-label-text-background-color.92193/

Even unsuccessful searches can be useful!

;-)
 
Upvote 0
Top