Android how to fit the textsize in textview
<p>Here is my code:  </p>

<pre><code>&lt;LinearLayout
                android:layout_width="fill_parent"
                android:layout_height="120dp"
                android:orientation="vertical"
                android:layout_weight="3" 
                android:weightSum="4"&gt;

                &lt;TextView
                    android:layout_width="wrap_content"
                    android:layout_height="0dp"
                    android:layout_weight="1"
                    android:text="P" /&gt;
                &lt;TextView
                    android:layout_width="wrap_content"
                    android:layout_height="0dp"
                    android:layout_weight="2"
                    android:text="Bryant" /&gt;
                &lt;TextView
                    android:layout_width="wrap_content"
                    android:layout_height="0dp"
                    android:layout_weight="1"
                    android:text="27" /&gt;
            &lt;/LinearLayout&gt;
</code></pre>

<p>When the outest layout's height is 120dp, the text can not be shown the whole word(e.g. 'y' only shwo upper part), I think it is because the textsize is too big.<br>
However, when I set to 150dp, the text can be shown whole word.<br>
Is any method to set the textsize of the text auto fit the textview to show the whole word.<br>
I don't want to hard-code the textsize to 12sp.<br>
And also, I want to do only in xml.<br>
Thanks.</p>
