Android App: how to read Font Size under Settings?

前端 未结 2 1913

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.

提交回复
热议问题