如下图所示,Android未按照我的预期包装文本:
“-”和“$”之间没有空格,但它们位于不同的行上。该字符串只是这样定义的:
有没有办法改变这种行为?我希望“-$999,999,999”像一个单词一样换行。
![enter image description here](https://istack.dev59.com/KIxG3.webp)
<string name="hello_world">Hello stackoverflow. This text does not wrap well -$999,999,999.</string>
有没有办法改变这种行为?我希望“-$999,999,999”像一个单词一样换行。