更改窗口小部件上的textview字体(使用波斯语字体) [英] change textview font on a widget (using persian font)

查看:92
本文介绍了更改窗口小部件上的textview字体(使用波斯语字体)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我制作了一个小部件,每小时都会显示一些有用的句子。

问题是我无法将字体传递给小部件( BroadcastReceiver sublcass)。

我搜索了很多,但我没有实现任何解决方案。

例如我使用自定义textview(扩展TextView的类),但是小部件没有运行。

然后我找到了font to bitmap转换方法,但我没有再次工作。

任何帮助都会受到赞赏。

Hi every one,
I have made a widget which shows some useful sentences for life every hour.
the problem is that I cannot pass typeface to the widget(BroadcastReceiver sublcass).
I searched a lot but I did not achieve any solution.
for example I used custom textview(class which extends TextView), but the widget did not run.
and then I found "font to bitmap" conversion method, but I did not work again.
any help would be appreciated.

推荐答案

这篇关于更改窗口小部件上的textview字体(使用波斯语字体)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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