Android TextView的属性设置为textstyle="bold"时 中文的“¥”不显示

昨天在修改列表的时候出现了一个挺让人纠结的问题。在TextView中“¥”符号无论如何也显示不出来。尝试了使用气的特殊符号,都是能够正确显示的。

最后百度google了一圈也没找出个所以然来。于是觉得自己试。把设置的各种属性都排查了一遍。最后发现问题出现在textstyle="bold"上。加上之后“¥”就不显示了。去掉“¥”之后就显示出来了。

至今没弄明白是什么原因。有知道的朋友希望能够告知一下,thanks

时间: 2024-08-28 02:02:26

Android TextView的属性设置为textstyle="bold"时 中文的“¥”不显示的相关文章

android textview xml 属性设置

 android:ems 设置TextView的宽度为N个字符的宽度. android:maxems 设置TextView的宽度为最长为N个字符的宽度.与ems同时使用时覆盖ems选项. android:minems 设置TextView的宽度为最短为N个字符的宽度.与ems同时使用时覆盖ems选项. android:maxLength 限制输入字符数.如设置为5,那么仅可以输入5个汉字/数字/英文字母. android:lines 设置文本的行数,设置两行就显示两行,即使第二行没有数据.

Android - TextView Ellipsize属性

Android - TextView Ellipsize属性 本文地址: http://blog.csdn.net/caroline_wendy android:ellipsize属性: If set, causes words that are longer than the view is wide to be ellipsized instead of broken in the middle. 假设字数过长,则会採取省略形式.而不使从中间截断.

Android textAppearance的属性设置及TextView属性详解

textAppearance的属性设置 android:textAppearance="?android:attr/textAppearanceSmall" android:textAppearance="?android:attr/textAppearanceMedium" android:textAppearance="?android:attr/textAppearanceLarge" TextView属性详解 android:autoLi

Android TextView RelativeLayout属性

android:autoLink    设置是否当文本为URL链接/email/电话号码/map时,文本显示为可点击的链接.可选值(none/web/email/phone/map/all) android:autoText    如果设置,将自动执行输入值的拼写纠正.此处无效果,在显示输入法并输入的时候起作用. android:bufferType    指定getText()方式取得的文本类别.选项editable 类似于StringBuilder可追加字符,也就是说getText后可调用a

Android textView 的属性

/**限制textview字数后边省略号 android:ellipsize="end" android:maxEms="9" android:singleLine="true" android:drawableLeft="@drawable/dingwei"//textView前的图片 android:drawablePadding="5dp"//textView 和textView前的图片中间的间隙 a

android dialog style属性设置

<!--最近做项目,用到alertDialog,用系统自带的style很难看,所以查了资料自己定义了个style. res/value/style.xml内增加以下代码:--> <style name="dialog" parent="@android:style/Theme.Dialog"> <!--Dialog的windowFrame框为无--> <item name="android:windowFrame&

Android TextView中文字设置超链接、颜色、字体

TextView是用来显示文本的,有时需要给TextView中的个别字设置为超链接,或者设置个别字的颜色.字体等,那就需要用到Spannable对象,可以借助Spannable对象实现以上设置. 效果图: Activity代码: import android.app.Activity; import android.graphics.Color; import android.os.Bundle; import android.text.Spannable; import android.tex

Android:Textview 通过代码设置 Drawable

解决方案 public void setCompoundDrawables (Drawable left, Drawable top, Drawable right, Drawable bottom); 类似与在 XML 中 android:drawableLeft="@drawable/icon" 使用 TextView 直接调用 setCompoundDrawables() 就可以实现添加 drawable,但是添加完成以后无法显示,查看源码,发现有这么一句话 The Drawab

android layout布局属性

参考:http://blog.csdn.net/msmile_my/article/details/9018775 第一类:属性值 true或者 false           android:layout_centerHrizontal 水平居中     android:layout_centerVertical 垂直居中     android:layout_centerInparent 相对于父元素完全居中     android:layout_alignParentBottom 贴紧父元