How to make a new line or tab in XML (eclipse/android)?

前端 未结 8 978
感情败类
感情败类 2021-01-31 13:25

So, in my strings.xml I have a very long text which I want to format somehow. How can I put a tab before the first sentence of the text? Also, what is the code for new line? Tha

8条回答
  •  情歌与酒
    2021-01-31 13:50

    add this line at the top of string.xml

    
    

    and use

    '\n'
    

    from where you want to break your line.

    ex. Hello world. \n its awesome.

    Output:

    Hello world.
    its awesome.
    

提交回复
热议问题