How do I properly store encoded characters in strings.xml?

I am trying to store two carriage returns in in strings.xml but can't figure out why they are ignored. However, if I put them directly into the layout, the carriage returns work fine.

Outputs carriage returns android:text="

Sent from my wonderful Android device"

Does not output carriage returns <string name="sent_from">&#xA;&#xA;Sent from my wonderful Android device</string>


Try the following:

<string name="sent_from">\n\nSent from my wonderful Android device</string>

I think that is what you are looking for.

Need Your Help

CruiseControl.Net on Windows Server 2003 x64 windows-server-2003 64bit

I'm having an issue with where the web dashboard just won't work in IIS. I have tried switching ASP.Net between 64 and 32 bit modes and reinstalling cruise control, but nothing se...

How to make a button display random answers?

c++ random c++-cli

What I want to make is to display a random answer on button click in C++.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.