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


    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?

  2. asales

    asales Well-Known Member Licensed User

  3. XbNnX_507

    XbNnX_507 Member Licensed User

    Label.Typeface = Typeface.CreateNew( Typeface.DEFAULT, Typeface.STYLE_BOLD_ITALIC)
  4. elriba

    elriba Member Licensed User

    That worked great! Thanks!