Android App: how to read Font Size under Settings?

前端 未结 2 1912

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/

相关标签:
2条回答
  • 2021-02-06 01:26

    You can also define your text size using "sp" units which is the same like "dp" but scales according to the users system setting for text size. No need to read the font size from the system yourself.

    0 讨论(0)
  • 2021-02-06 01:27

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

    0 讨论(0)
提交回复
热议问题