Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to place "&" in xml strings file in android studio

Tags:

I have my xml string file like this:

<string name="text1">ben & angie</string> 

But it says I have an unescaped & . How to escape it?

like image 838
Hucen Farhan Avatar asked Oct 21 '15 21:10

Hucen Farhan


People also ask

What direction should bed be facing?

According to ancient traditions like vastu shastra, the best direction to sleep in is toward the south. This theory is also supported by some recent research1. This means that when you lie in bed, your head is pointed south2, and your feet are pointed north.

Is feng shui a real thing?

Feng shui is an ancient Chinese art that involves creating a space that's harmonious with the environment. It literally means “wind” (feng) and “water” (shui). With feng shui, objects in a room are arranged according to the flow of natural energy.

Is it OK to put bed in front of door?

Positioning your bed in line with the door is the worst possible position, according to the principles of Feng shui. People who practice Feng shui call it the 'dead man's position' or the 'coffin position' because the feet or head face the door and resemble how we carry the dead through open doors from the house.

Where should a bed be placed in a bedroom?

Commanding Position You want your bed located so that when you're lying in bed, you can see the door to the bedroom. However, you don't want to be directly in line with the door either. A good rule of thumb is it places the bed diagonal from the door.


1 Answers

Write:

<string name="text1">ben &amp; angie</string> 

Here is a link to the xml spec how to escape characters.

like image 89
wero Avatar answered Oct 02 '22 07:10

wero