I am starting with this:
<TextView
android:text="Here is what it looks like"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:gravity="center"/>
Which renders like this:
| Here is what it looks |
| like |
But I want it to render like this:
| Here is what |
| it looks like |
Is there a way to do this without customizing the built in TextView
? If not, how can TextView
be customized to do this?
Note that the android:text
value is actually filled in programmatically and can vary in content/length. I am looking for a general solution that works for any text value on any screen width.