Hello!
I add text to the textview. If the next word does not fit at the end of the line, it is transferred to a new line, leaving an empty space at the end of this line.
How can this be fixed?
Hello!
I add text to the textview. If the next word does not fit at the end of the line, it is transferred to a new line, leaving an empty space at the end of this line.
How can this be fixed?
Try to write more detailed questions. To get an answer, explain what exactly you see the problem, how to reproduce it, what you want to get as a result, etc. Give an example that clearly demonstrates the problem. If the question can be reformulated according to the rules set out in the certificate , edit it .
This is normal behavior and it is unnecessary to correct it, since this is not an error.
This happens because the system does not know the transfer rules. You can set your own rules by inserting a special character in the places of possible transfer, which is called a zero-width space - a space with a zero length. It has the code \u200a (or \u200b , could not remember exactly, try both). Use something like this:
"тут\u200bне\u200bбудет\u200bвидно\u200bпробелов\u200bно\u200bслова\u200bбудут\u200bпереноситься" Source: https://ru.stackoverflow.com/questions/577671/
All Articles
\n. - post_zeew