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
Possible, you do not need make your view based on TextView. Try to extend View and write your text in onDraw().
onDraw()
Look at here: https://stackoverflow.com/a/32081250/1263771