I want to have some simple text in textView..
Like...(android & java)
means I exactly require "and" symbol in textView
If I'm providing within TextView android:text="Bakeries & Dessert"
in textView
it's showing error in xml.
Can Anyone suggest me how to ignore special case characters & ," etc and have them in our TextView
text.
The layout files are just xml and the & symbol is not allowed by itself.
You will need to use &
instead
http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references#Predefined_entities_in_XML
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With