I would like to avoid breaking lines in specifical parts of the String.
Let's say we have this String:
Speed (m/s)
The ideal would be either not jumping at all and having the full String in one line, or, if the jump is needed, in this way:
Speed
(m/s)
What I want to avoid are thing like this:
Speed (m/
s)
Any ideas?
Try to use non-breaking space between the Speed and "(m/s)".
The Unicode no-break space character (\u00A0
) should work for TextView.
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