Here is an example. I limit the size explicitely with the maxLength attribute, limit it to a single line with maxLines.
<TextView
android:id="@+id/secondLineTextView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:maxLines="1"
android:maxLength="10"/>
Just replace the value for android:maxLength="10"