I’ve seen many posts dealing with similar problems but none of them worked for me. In Canvas, I have a rectangle of size, let’s say, 200px by 200px, and I want to write text in this rectangle. The text doesn’t need to fill the entire rectangle, but the important thing is that there should automatically be a line break when it reaches the end of the rectangle. How can I do this in Android?
I’ve seen many posts dealing with similar problems but none of them worked for
Share
You can use StaticLayout.