码迷,mamicode.com
首页 > 其他好文 > 详细

解决TextView换行异常问题

时间:2018-09-22 01:03:01      阅读:167      评论:0      收藏:0      [点我收藏+]

标签:you   一段   round   width   网上   false   content   nbsp   pre   

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

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

 

解决TextView换行异常问题

标签:you   一段   round   width   网上   false   content   nbsp   pre   

原文地址:https://www.cnblogs.com/Potato-Eater/p/9688900.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!