TextView截断了android中的一封信

编程入门 行业动态 更新时间:2024-10-24 23:19:25
本文介绍了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中的一封信

本文发布于:2023-10-17 13:13:14,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1501022.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:封信   TextView   android

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!