Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lizhuoyuan authored Feb 21, 2019
1 parent a2e4662 commit 96a2a8a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,11 @@ ScreenUtil.instance = ScreenUtil(width: 750, height: 1334, allowFontScaling: tru

Pass the px size of the design draft:

Adapted to screen width: ScreenUtil().setWidth(540),
Adapted to screen width: `ScreenUtil().setWidth(540)`,

Adapted to screen height: ScreenUtil().setHeight(200),
Adapted to screen height: `ScreenUtil().setHeight(200)`,

You can also use `ScreenUtil.getInstance()` instead of `ScreenUtil()` , for example: `ScreenUtil.getInstance().setHeight(25)`

**Note**

Expand Down

0 comments on commit 96a2a8a

Please sign in to comment.