Double quotes with backslash will not work in the XML layout. You should use HTML code (quot), for example:
<TextView android:layout_width="wrap_content" android:layout_height="fill_parent" android:text="Here goes my "escaped" text!" />
In the above code, a TextView will be displayed containing:
Here is my runaway text!
XML has 5 of these purported entities :
" " & & ' ' < < > >
Jacob ras
source share