How to Set the Maximum Height of TextView
add in API Level 1Makes the TextView be at most this many pixels tall.
1. Create an Android project, if you don't already have one.
3. In the main.xml file, add the code below.
...
android:maxHeight = "20sp"
/>
4. Compile and run!
Related Articles:
Resources:
http://developer.android.com/reference/android/widget/TextView.html#attr_android:maxHeight
http://developer.android.com/reference/android/R.attr.html#maxHeight