Prevent word-break in a TextView
<p>I have a <code>TextView</code> with fixed width as follows:</p>

<pre><code>&lt;TextView
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:gravity="center"
    android:textSize="12sp"
    tools:text="Health Department"
    android:layout_marginTop="4dp"
    android:maxLines="2"
    /&gt;
</code></pre>

<p>... But it appears like:</p>

<pre><code>   |Health Dep-|
   |  artment  |
</code></pre>

<p>... While I want it to be:</p>

<pre><code>   |  Health  |
   |Department|
</code></pre>

<p>What XML attribute can I use to do this?</p>