TextView截断了android中的一封信 [英] textview cutting off a letter in android

查看:55
本文介绍了TextView截断了android中的一封信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的android的屏幕截图.文本为"asd".但是,"d"会被略微切除.这是相关视图:

this is a screen shot from my android. the text is "asd". however the "d" is slightly cut off. here is the relevant view:

        <TextView
            android:id="@+id/stuff"
            android:padding="2dp"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentLeft="true"
            android:layout_below="@+id/other_stuff"
            android:layout_marginTop="33dp"
            android:textAppearance="?android:attr/textAppearanceLarge"
            android:textStyle="italic" />

是什么原因造成的?

推荐答案

以上提到的建议均无奏效,但最终得到了一个骇人听闻的解决方案,该解决方案是在最后一个斜体字符后添加空格

none of the mentioned suggestions work, ended up with a hacky solution which is adding a white space after the last italicized character

这篇关于TextView截断了android中的一封信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆