Skip to content

Commit

Permalink
Update README_CN.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lizhuoyuan authored Oct 28, 2020
1 parent 47933b5 commit 9a9148e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,12 @@ ScreenUtil.init(context, designSize: Size(750, 1334), allowFontScaling: true);
ScreenUtil().setSp(24, allowFontScalingSelf: true) (sdk>=2.6 : 24.ssp) //适配字体(根据系统的“字体大小”辅助选项来进行缩放)
ScreenUtil().setSp(24, allowFontScalingSelf: false) (sdk>=2.6 : 24.nsp) //适配字体(不会根据系统的“字体大小”辅助选项来进行缩放)
ScreenUtil.pixelRatio //设备的像素密度
ScreenUtil.screenWidth (sdk>=2.6 : 1.sw) //设备宽度
ScreenUtil.screenHeight (sdk>=2.6 : 1.sh) //设备高度
ScreenUtil.bottomBarHeight //底部安全区距离,适用于全面屏下面有按键的
ScreenUtil.statusBarHeight //状态栏高度 刘海屏会更高 单位dp
ScreenUtil.textScaleFactor //系统字体缩放比例
ScreenUtil().pixelRatio //设备的像素密度
ScreenUtil().screenWidth (sdk>=2.6 : 1.sw) //设备宽度
ScreenUtil().screenHeight (sdk>=2.6 : 1.sh) //设备高度
ScreenUtil().bottomBarHeight //底部安全区距离,适用于全面屏下面有按键的
ScreenUtil().statusBarHeight //状态栏高度 刘海屏会更高 单位dp
ScreenUtil().textScaleFactor //系统字体缩放比例
ScreenUtil().scaleWidth // 实际宽度的dp与设计稿px的比例
ScreenUtil().scaleHeight // 实际高度的dp与设计稿px的比例
Expand Down

0 comments on commit 9a9148e

Please sign in to comment.