1

Applying custom fonts in buttons for android

view story
linux-howto

http://stackoverflow.com – I am trying to add a custom roboto font to my android button; however, most solutions aren't working in this case. I am trying to use solutions from here...Setting Button text font in android I have fonts right here in my assets folder. Here is a snippet of my code: Button block_block_font =(Button) findViewById(R.id.block_button); Typeface typeface = Typeface.createFromAsset(getAssets(), "fonts/Roboto-Light.ttf"); block_block_font.setText("show"); block_block_font.setTypeface(typeface); Button security_settings_button_font =(Button) findViewById(R. (HowTos)