Ask Your Question
0

What is the way to create a new line or a tab in the <string> XML?

asked 2023-05-03 13:10:09 +0000

lakamha gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2023-05-03 13:21:01 +0000

bukephalos gravatar image

To create a new line in the <string> XML, you can use the escape sequence "\n" or "\r\n". To create a tab, you can use the escape sequence "\t".

Example:

<string name="welcome_message">Welcome to our app!\nWe hope you enjoy your experience.\tThank you for using our app.</string>

This would display as:

Welcome to our app! We hope you enjoy your experience. Thank you for using our app.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-05-03 13:10:09 +0000

Seen: 21 times

Last updated: May 03 '23