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
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.
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.
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.
Try:
3\"2
and
0\"8
Check out String Resources > Formatting and Styling on the official docs.
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