解决TextView换行异常问题

Posted potato-eater

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了解决TextView换行异常问题相关的知识,希望对你有一定的参考价值。

在用TextView显示一段中文时发现会提前换行,用网上搜索到的方案都解决不了,最终选择用EditText代替之

        <EditText
            android:layout_width="wrap_content"
            android:layout_height="wrap_content" 
            android:enabled="false"
            android:background="@null"/>

 

以上是关于解决TextView换行异常问题的主要内容,如果未能解决你的问题,请参考以下文章