How to align the text to top of a TextView? Equivalent Android API for Swings setInsets()? that is top of text should start be in (0,0) of TextView
In your .xml, write that:
android:gravity="center|top"
The first "center" align your line horizontally in the center and the next "top" align vertically up.