给定宽度,使textview 文本刚好填充宽度
原文 https://blog.csdn.net/qq_29163733/article/details/52154521 (修复了若干bug)
只需要自定宽度,文本自动填充
<com.example.xianchao.linetextview.LineTextView
android:layout_width="150dp"
android:layout_height="wrap_content"
android:text="我是五个字"/>
我是协议