Is there a way to set the textStyle attribute of a TextView programmatically? There doesn\'t appear to be a setTextStyle() method.
textStyle
TextView
setTextStyle()
You may try this one
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { textView.setTextAppearance(R.style.Lato_Bold); } else { textView.setTextAppearance(getActivity(), R.style.Lato_Bold); }