Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Long strings in XML  RSS feed

 
Jim Venolia
Ranch Hand
Posts: 248
2
Chrome Linux VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Last year I wrote my first droid app using Eclipse.  My app pretty much just prints out a list, in Java it was

Continued for 8-9 lines.

Well, I decided to update it.  Decided to use AndroidStudio this time around, which was fun.  Then I decided it was probably better to make my text a resource, which means putting it into an xml file.  But I can't find anything telling me how to make an xml string more than a line long.

Advice?
 
Jim Venolia
Ranch Hand
Posts: 248
2
Chrome Linux VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Got it, just end each line with a backslash.


What should I have googled for to get that, instead of racking my brain for various ways I've done this kind of thing?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!