Android字体不跟随系统
在基类里面重写getResources方法使设置缩放比例为1
@Overridepublic Resources getResources() {//还原字体大小Resources res = super.getResources();Configuration configuration = res.getConfiguration();if (configuration.fontScale != 1) {//fontScale要缩放的比例configuration.fontScale = 1;res.updateConfiguration(configuration, res.getDisplayMetrics());}return res;}