programmatically set text style android code example Example: java set textview style textview.setTypeface(Typeface.DEFAULT_BOLD);