Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android XML values - String Array :: Placing a quote in the value?

I have a string array in strings.xml, in the values I need to have shutter speeds.

For example:

3"2

or

0"8

I try to enter the data in the xml, but that does not work. Alternatively; when I enter the value in the graphical interface of the strings.xml file, it places the data as screen dump

Which does not display when I place the array in a spinner later on.

Basically, I would like to know how to display a single quotation mark in a string of a string array and have it display in a spinner later on.

Thanks for any help, have a nice day.

like image 655
rabbitt Avatar asked Jun 20 '11 08:06

rabbitt


People also ask

What is the use of string XML in android?

A string resource provides text strings for your application with optional text styling and formatting. There are three types of resources that can provide your application with strings: String. XML resource that provides a single string.

What is strings XML?

A string is a simple resource that is referenced using the value provided in the name attribute (not the name of the XML file). So, you can combine string resources with other simple resources in the one XML file, under one <resources> element.


1 Answers

Try:

3\"2

and

0\"8

Check out String Resources > Formatting and Styling on the official docs.

like image 127
Felix Avatar answered Nov 15 '22 21:11

Felix