I thought, that this is gonna be pretty easy to find out. However, google is giving me just bad results. Please, does anyone know how can I write a Euro symbol into a strings.xml value? I still get an exception that such value is not allowed. Thanks.
The standard keyboard that comes with most versions of Android includes the euro symbol (€), but that character is not immediately visible. When you are tapping out an email message or other text and need to insert the euro sign, tap the ? 123 key in the lower-left corner of the keyboard.
String. xml file contains all the strings which will be used frequently in Android project. String. xml file present in the values folder which is sub folder of res folder in project structure.In Android Studio, we have many Views such as TextView,Button,EditText,CheckBox,RadioButton etc.
Just replace - with – because when you type a dash on the keyboard, XML reads dash as minus, that's all.
In android studio, you can simply press Alt+Enter and it will convert for you.
Use the XML/HTML € entity:
€
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