android:更改字体设置的Intent.Action吗? [英] android: is there Intent.Action of font setting changed?

查看:168
本文介绍了android:更改字体设置的Intent.Action吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在android中,当某些设置更改时,必须重新创建应用程序的活动,这可能导致应用程序崩溃,例如语言或字体设置;我知道语言设置的Intent.Action为ACTION_LOCALE_CHANGED,但是找不到字体设置的Intent.Action;所以问题是: Android中字体设置的Intent.Action是什么,如果没有,该如何处理字体设置更改的情况?

In android, when some of setting changed, the activity of app must reCreate, which may result in app crashed, like language or font setting; I know language setting's Intent.Action is ACTION_LOCALE_CHANGED, but can't find the font setting's Intent.Action; so the question is : what is font setting's Intent.Action in Android, if not, how to handle the case that font setting changed?

推荐答案

我明白了;

android.intent.action.FONT_CONFIG_CHANGED

android.intent.action.FONT_CONFIG_CHANGED

也许你们在Google源代码中找不到它!
我的团队定制了源代码!

may be you guys can't find it in the Google source code!
my team custom-fitted the source code!

这篇关于android:更改字体设置的Intent.Action吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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