How to influence linebreak in Android Textview
- by Lord Flash
I have an Appwidget displaying days until an event like:
eventname (-231 days)
If possible I want to display this String in one line.
If the eventname is too long I want to display the full term in braces into a new line.
So that it is like:
longeventname
(-231 days)
instead of:
longeventname (-231
days)
(or anything similar)
Is there a way to archive this?
Can I make (-231 days) "atomic"?
string.getLength won't work since the size of the widget will vary by device.