Spaces in Android string.xml and how to write newlines

Android development uses the string.xml file in the value directory to save global string variables to facilitate support for multiple languages.

Spaces in Android string.xml and how to write newlines

What to do with line breaks and spaces in a line of characters, adding carriage returns and spaces directly between "string name="xxx" and "/string" will not work.

No way, only escaping.

[PS: Add a carriage return directly or cause the text message to not be displayed]

I found the special characters such as spaces and newlines in the XML file.
Spaces in Android string.xml and how to write newlines

However, pressing this input is not ideal, spaces can be displayed, but line breaks are invalid.

If you want to think about it, directly use the classic "\" of C language to directly escape the meaning, and the result is OK. ( )

Sometimes the most primitive things are often the most effective.

1.5"~2" Speaker 40~50mm

1.5"~2" speaker (40~50mm)


1)1.5" speaker 40mm speaker
2)1.75" speaker 44mm speaker
3)1.8" speaker 45mm speaker
4)1.9" speaker 48mm speaker
5)2" speaker 50mm speaker

XDEC-40Y-4XDEC-45Y-1XDEC-48Y-1






FAQ

Q1. What is the MOQ?
XDEC: 2000pcs for one model.
Q2. What is the delivery lead time?
XDEC: 15 days for normal orders, 10 days for urgent orders.
Q3. What are the payment methods?
XDEC: T/T, PayPal, Western Union, Money Gram.
Q4. Can you offer samples for testing?
XDEC: Yes, we offer free samples.
Q5. How soon can you send samples?
XDEC: We can send samples in 3-5 days.

1.5" Speaker 40Mm Speaker,1.75" Speaker 44Mm Speaker,1.8" Speaker 45Mm Speaker,1.9" Speaker 48Mm Speaker

Shenzhen Xuanda Electronics Co., Ltd. , https://www.xdecspeaker.com

Posted on