I need to add
in strings.xml. What is the escape sequence in order to do that? The string to
Use <
for less than symbol and >
for greater than symbol.
so here you need to replace like:
<string name="name_hint"><Given Name></string>
The Android string.xml file is just a regular XML file, so you can use the XML escape characters:
" "
' '
< <
> >
& &
Your example would become <string name="name_hint"><Given Name></string>
UPDATE:
Furthermore you can use the HTML entities of each character, a blank space is for example  
, and a non-breaking space is  
.
Note that I am not entirely sure whether this is officially supported by the XML standards, or that it 'just works'...
You can use "<" for "<" and ">" for ">"
So you should add the following string in your app's strings.xml like:
<string name="name_hint"><Given Name></string>
For your another requirement you can define it like
<Given name> <Middlename> <Sirname>
<string name="name_hint"><Given Name> <Middle Name> <Last Name> </string>
or define three different strings.
<string name="name_hint1"><Given Name></string>
<string name="name_hint2"><Middle Name></string>
<string name="name_hint3"><Last Name></string>
in your java file add it dynamically
tv.setText(getResources().getString(R.string.name_hint1) + " " +
getResources().getString(R.string.name_hint2)+" " +
getResources().getString(R.string.name_hint3));