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 Feb 21, 2019
1 parent 2c0600a commit a2e4662
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,11 @@ ScreenUtil.instance = ScreenUtil(width: 750, height: 1334, allowFontScaling: tru

传入设计稿的px尺寸:

根据屏幕宽度适配 width: ScreenUtil().setWidth(540),
根据屏幕宽度适配 `width: ScreenUtil().setWidth(540)`,

根据屏幕高度适配 height: ScreenUtil().setHeight(200),
根据屏幕高度适配 `height: ScreenUtil().setHeight(200)`,

也可以使用 `ScreenUtil.getInstance()` 来替代`ScreenUtil()` , 例如:`ScreenUtil.getInstance().setHeight(25)`

**注意**

Expand Down

0 comments on commit a2e4662

Please sign in to comment.