Android应用程序:如何阅读字体大小设置下?字体大小、应用程序、Android

2023-09-05 07:34:51 作者:绝版男神i

我开发一个Android应用程序,我想读下的字体大小设置 - >显示 - >字体大小

I am developing an Android Application and I would like to read the Font Size under Settings->Display->Font Size.

因此​​,如果用户设置了字体大小为小/大/巨大的,我想全自动将此应用到我所有的文字

So if a user has set his Font Size to Small/Big/Huge, I would like to apply this automaticly to all my text

我使用的是三星GALAXY Nexus,安卓4.1.2

I am using a Samsung Galaxy Nexus, Android 4.1.2

感谢您在您的帮助

推荐答案

尝试阅读FONT_SCALE从 android.provider.Settings.System

Try reading FONT_SCALE from android.provider.Settings.System.