Android Question How to change the text on a Label view to BOLD

Discussion in 'Android Questions' started by elriba, Feb 12, 2018.

  1. elriba

    elriba Member Licensed User

    Hi,

    How do I change a Label's text to use BOLD, or ITALIC, or BOLD+ITALIC?

    The Label was created under code (not the designer). There are no "Style" property for Labels.

    On a similar line, could you guys recommend some tutorial or resource to learn about typefaces under B4A and android?

    Thanks,
    Edgard
     
  2. asales

    asales Well-Known Member Licensed User

  3. XbNnX_507

    XbNnX_507 Active Member Licensed User

    Code:
    Label.Typeface = Typeface.CreateNew( Typeface.DEFAULT, Typeface.STYLE_BOLD_ITALIC)
     
    Dave O likes this.
  4. elriba

    elriba Member Licensed User

    That worked great! Thanks!
     
Loading...
  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