Skip to content
Advertisement

Tag: word-wrap

Disable text wrapping in Android

I’m working on a project in Android where I have a TextView (an EditText to be exact) and a setting to enable or disable text wrapping for that view. I have searched the internet (a lot) but still haven’t found any satisfying solution. Currently I’m using a NestedScrollView for the vertical scrolling and then dynamically insert one of two partial

Java text wrap issue, caused by input width

I am trying to wrap text based on a width of 10 characters. After looking at other questions, I have the following: This works until a word in my string is longer than the specified width. When this occurs, the rest of the string is printed on line line instead of still following the line width rule. Any ideas? I

Advertisement