android:scrollHorizontally="false"
android:inputType="textMultiLine"
android:singleLine="false"
在你的textview 要加上这三行
用的时候
tv.setText("aa\nbb");
tv.setTest(Html.fromHtml("xxx<br>xxx<br>"));
但会阻止TextView向上冒泡,所以改为如下,也能实现类似的效果
android:singleLine="false"
android:lines="2"