Android Quick Tips for TextView

We are going to see how we can change Android TextView behavior or looks by programmatically because normally everyone knows how to do in XML. For example sometime we need to change text color or style according some conditions. I hope definitely this tips will help for beginners.

How to set gravity to a TextView programmatically in Android?

Normally we know how to set gravity in XML but above one is showing how to set grammatically.

How to set background as image to a TextView programmatically in Android?

Set text size

Set text bold

Set text color

Set drawableRight

quick tips for textview android

Add Comment