The TextView will wrap the text if the column it’s in is set to shrink. Sometimes it does not wrap exactly, if the text ends with “, …”, then it is a little bit longer than exactly n lines.
Here’s an example, the TextView with the id question will wrap:
<TableLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:shrinkColumns="*">
<TableRow>
<TextView
android:id="@+id/question"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
</TableRow>
</TableLayout>