Breaking text in Android's TextView -
i have text string
lorem ipsum dolor sed eiusmod tempor sit am.
which display on screen. phones can display whole sentence in single line, while others not wide , display sentence this:
lorem ipsum dolor sed eiusmod tempor sit
am.
which looks ugly. better break more evenly, this:
lorem ipsum dolor sed eiusmod tempor sit
tempor sit am.
how make sure textview never breaks text single word takes whole line?
remark: api 23 introduced breakstrategy
attribute (see link) textview
, solve problem. unfortunately, not supported lower versions. there work-around here?
wiki
Comments
Post a Comment