How to Set the Width of a TextView/EditText
android:width was added in API Level 1Makes 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.
...
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.
Related Articles:
Resources:
http://developer.android.com/reference/android/R.attr.html#width