fuhuangfan
Results
2
comments of
fuhuangfan
字体采用pt不能随系统改变,采用sp那不就是等于说字体不适配吗?这个很重要吧
重写application的getResources()方法会导致栈溢出。 @Override public Resources getResources() { //以pt为单位进行适配 if (ScreenUtils.isLandscape(this)){ return AdaptScreenUtils.adaptWidth(super.getResources(), 640, this); } else { return AdaptScreenUtils.adaptHeight(super.getResources(), 640, this); } // return super.getResources(); }