Don't wrap text in Android TextView at period in abbreviation
问题 Is there a way to control where a TextView chooses to wrap its text? The issue that I'm having is that it wants to wrap at periods - so a string like "Available in the U.S. and Canada" could wrap after the period between the U and the S. Is there a way to tell the TextView not to wrap unless there's a period and a space, or some programmatic way to control the wrapping? 回答1: I ended up writing my own algorithm to break the text only on whitespace. I had originally used the breakText method of