0

I have some texts in my string.xml file. When I set them in textview, new lines are not shown. So I copied the string.xml file from my project and pasted in my devices external storage and used a test app to read it as a text file. Surprisingly I could see the new lines present in the string I read from the file. So I don't know what the problem is!

Here there is no new line in the main app

Here there is no new line in the main app

Here the new line character is present in the string

[Here the new line character is present in the string

Sagar Zala
  • 4,854
  • 9
  • 34
  • 62
SSP
  • 431
  • 4
  • 16
  • https://stackoverflow.com/questions/5460256/string-resource-new-line-n-not-possible – Mubashir Opi Nov 01 '18 at 10:06
  • Possible duplicate of [String Resource new line /n not possible?](https://stackoverflow.com/questions/5460256/string-resource-new-line-n-not-possible) – Reaz Murshed Nov 01 '18 at 10:18
  • @ReazMurshed It is not a duplication. The questions are far different. Please compare the two again. Thanks – SSP Nov 01 '18 at 14:40

0 Answers0