修改WeX5/model/Native/templates/advanced/platforms/android/CordovaLib/src/org/apache/cordova/CordovaActivity.java 文件
增加
/设置字体大小不随手机设置而改变 @Override public Resources getResources() { Resources res = super.getResources(); Configuration config=new Configuration(); config.setToDefaults(); res.updateConfiguration(config,res.getDisplayMetrics() ); return res; }
需要引入的Class:
import android.content.res.Configuration; import android.content.res.Resources;
评一波