Android Question Text Colour in Labels

Discussion in 'Android Questions' started by RJB, Jun 18, 2015.

  1. RJB

    RJB 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:

    Code:
    Sub Globals
        
    Dim lab As Label
    End Sub

    Sub Activity_Create(FirstTime As Boolean)
        lab.Initialize(
    "")
        
    Activity.AddView(lab, 00800dip400dip)
        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.
     
  2. eurojam

    eurojam Well-Known Member Licensed User

    on my nexus 5 with Android 5.1.1 it is Red with green background

    Screenshot_2015-06-18-09-42-46.png
     
  3. RJB

    RJB Member Licensed User

    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.
     
  4. DonManfred

    DonManfred Expert Licensed User

    In my note3, Android 5.1.2
    It is shown correctly
     
  5. RJB

    RJB Member Licensed User

    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.
     
  6. RJB

    RJB 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.
     
Loading...