public static float getFontSize() {
Configuration mCurConfig = new Configuration();
try {
mCurConfig.updateFrom(ActivityManagerNative.getDefault().getConfiguration());
} catch (RemoteException e) {
Log.w(TAG, "Unable to retrieve font size");
}
Log.w(TAG, "getFontSize(), Font size is " + mCurConfig.fontScale);
return mCurConfig.fontScale;
}
评论 5
您还未登录,请先
登录
后发表或查看评论
05-25
956

“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交