Android Question Text Colour in Labels

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

  1. RJB

    RJB Active Member Licensed User

    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:

    Sub Globals
    Dim lab As Label
    End Sub

    Sub Activity_Create(FirstTime As Boolean)
    Activity.AddView(lab, 00800dip400dip)
        lab.Text = 
    "the quick brown fox"
        lab.TextSize = 
        lab.TextColor = 
        lab.Color = 
        lab.Typeface = 
    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

  3. RJB

    RJB Active 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 Active 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 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.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice