Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TextView - how to make second line indented

I want to have the second line (and third, fourth, etc.) of my TextView indented, is that possible? I don't know the exact TextView's text in advance. The text will be without newline ("\n") characters - it will be wrapped to lines automatically by the TextView.

like image 411
fhucho Avatar asked Nov 19 '10 16:11

fhucho


1 Answers

Another possibility would be to switch from a TextView to a WebView then using CSS set the padding-left of your text to 20px and text-indent to -20px. That should move all text in 20px except the first line which will be pulled back 20px.

like image 164
GeekYouUp Avatar answered Oct 25 '22 22:10

GeekYouUp