Read font size from Settings

前端 未结 4 1986
情深已故
情深已故 2020-11-30 10:52

This question is a almost dublicate of Android App: how to read Font Size under Settings? I read the answer of CommonsWare which points to use Settings.System.FONT_SCA

4条回答
  •  情歌与酒
    2020-11-30 11:44

    You could probably use getResources().getDisplayMetrics().scaledDensity - http://developer.android.com/reference/android/util/DisplayMetrics.html#scaledDensity

提交回复
热议问题