I need to set a button's text to just ?
.
I'm happy to do it via Java, but would rather do it via the XML.
Is it possible?
I've tried android:text="?"
and android:text="?"
but it did not work.
Then I set one of the string resources to ?
, and when that did not work I set it to ?
referenced that but it doesn't work!
How do I set the button caption to ? using XML?
You need to escape the question mark...
android:text="\?"
Write "\?" Intead normal or ASCII form.
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