android:minWidth - Set the Minimum Width of a TextView

How to Set the Minimum Width of a TextView

android:minWidth was added in API Level 1

Makes the TextView be at least this many pixels wide.

1. Add a TextView in the main.xml file.

2. In the main.xml file, add the code below.

<TextView
        ...
android:minWidth = "10sp"
/>

3. Ensure the  android:layout_width in the TextView is set to "wrap_content".
If android:layout_width is set to "match_parent" = "match_parent" will override the android:minWidth setting.

4. Compile and run!
http://developer.android.com/reference/android/widget/TextView.html#attr_android:minWidth
http://developer.android.com/reference/android/R.attr.html#minWidth