android:width - Set the Width of a TextView/EditText

How to Set the Width of a TextView/EditText

android:width was added in API Level 1

Makes the TextView be exactly 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:width = "70sp"
/>

4. 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.

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