Android Question [SOLVED] Is possible to use "Font Awesome" in a button?

Discussion in 'Android Questions' started by asales, Mar 11, 2015.

  1. asales

    asales Well-Known Member Licensed User

  2. Gary Milne

    Gary Milne Active Member Licensed User

    You can use it in a label so you should be able to use it in anything that supports .Typeface, such as a button.

    Code:
    'Font Awesome Font
        Dim FontAwesome As Typeface
        FontAwesome = 
    Typeface.LoadFromAssets("fontawesome-webfont.ttf")
        lblVersion.Typeface = FontAwesome

        
    'This works
        lblVersion.Text = Chr(0xf061)
        lblVersion.TextSize = 
    24
        lblVersion.TextColor = 
    Colors.Yellow
     
    asales and DonManfred like this.
  3. DonManfred

    DonManfred Expert Licensed User

    See my lib iconbutton. It uses fontawesome
    Too
    Vor was it just the fancybutton? ;-)
     
    asales likes this.
  4. asales

    asales Well-Known Member Licensed User

    Problem solved. 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