请问textview可以设置字体的粗体 斜体吗? rt 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 用typeface引入外部字体文件就可以, do not understand #!'s answer 在xml文件中使用android:textStyle=”bold” 可以将英文设置成粗体, 但是不能将中文设置成粗体, 将中文设置成粗体的方法是: TextView tv = (TextView)findViewById(R.id.TextView01); TextPaint tp = tv.getPaint(); tp.setFakeBoldText(true); 上面是我搜的,不过我试了之后,似乎中文的粗体还是不行android:textStyle=”bold|italic” TextView custom=newTextView(this);//字体MgOpenCosmeticaBold.ttf放置于assets/font/路径下typeface=Typeface.createFromAsset(getAssets(),"font/MgOpenCosmeticaBold.ttf");custom.setTypeface(typeface); 急啊ksoap2调用webservice出错soapenv:Server' faultstring TextView如何载入资源中的txt文件? Handler中是否可以开启Activity? android中有类似于java中FileChooser这种控件吗?? android连接webservice超时终止线程问题 自定义的View上添加TextView时的错误 图片云存储API html5怎么开发android啊,用什么工具 没有DrawerLayout expandablelistview 子项横向显示 编译android源码时,意外中断,如何能让其接着编译? 关于AsyncTask
将中文设置成粗体的方法是: TextView tv = (TextView)findViewById(R.id.TextView01);
TextPaint tp = tv.getPaint();
tp.setFakeBoldText(true);
android:textStyle=”bold|italic”
//字体MgOpenCosmeticaBold.ttf放置于assets/font/路径下
typeface=Typeface.createFromAsset(getAssets(),"font/MgOpenCosmeticaBold.ttf");
custom.setTypeface(typeface);