Android Question Text Colour in Labels

RJB

Active Member
Licensed User
Hi,
does anyone have any idea why setting text colours on labels would have stopped working in Android 5? All other versions this test code works:

B4X:
Sub Globals
    Dim lab As Label
End Sub

Sub Activity_Create(FirstTime As Boolean)
    lab.Initialize("")
    Activity.AddView(lab, 0, 0, 800dip, 400dip)
    lab.Text = "the quick brown fox"
    lab.TextSize = 80
    lab.TextColor = Colors.Red
    lab.Color = Colors.Green
    lab.Typeface = Typeface.DEFAULT
End Sub
in Android 5 the text has a white outline and black fill.
 

RJB

Active Member
Licensed User
on my nexus 5 with Android 5.1.1 it is Red with green background

View attachment 35005
Thanks, my version is 5.0.2 on a generic tablet (BTC Flame) but I wouldn't have thought that would have made the difference. I've looked through all of the settings but can't find anything that looks like it would cause the problem!
The red on green is as it shows on kitkat, Jellybean, ICS etc. on other tablets/ phones.
 

RJB

Active Member
Licensed User
In my note3, Android 5.1.2
It is shown correctly
Thanks - it's beginning to look like the tablet then! Though it seems like an odd thing for it to do!
I would attach a screenshot but I don't know how to attach an image from my pc.
 

RJB

Active Member
Licensed User
Just in case anyone comes across the same problem:
The tablet has now been re-flashed, supposedly to the same build as it originally was, and the problem has been solved. The display shows exactly as given in eurojam's picture, above, i.e. as it should.
 
Top