How to indent text in a textview in android?

后端 未结 1 965
梦如初夏
梦如初夏 2021-01-23 16:11

Im trying to make the text much easier to read by making seperate paragraphs. I\'ve tried adding spaces before the text in the string resource but it doesn\'t work. Im wondering

相关标签:
1条回答
  • 2021-01-23 16:59

    you can use \t for tab \n for newline.it works for sure. and write this attribute to your textview in your xml

    android:singleLine="false"
    

    For more attributes of Textview take a look here

    0 讨论(0)
提交回复
热议问题