Showing
1 changed file
with
2 additions
and
0 deletions
@@ -75,6 +75,8 @@ Container( | @@ -75,6 +75,8 @@ Container( | ||
75 | ``` | 75 | ``` |
76 | 76 | ||
77 | #### 适配字体: | 77 | #### 适配字体: |
78 | +传入设计稿的px尺寸: | ||
79 | + | ||
78 | ``` | 80 | ``` |
79 | ScreenUtil().setSp(28) //传入字体大小,根据系统的“字体大小”辅助选项来进行缩放 | 81 | ScreenUtil().setSp(28) //传入字体大小,根据系统的“字体大小”辅助选项来进行缩放 |
80 | ScreenUtil().setSp(28,false) //传入字体大小,不会根据系统的“字体大小”辅助选项来进行缩放 | 82 | ScreenUtil().setSp(28,false) //传入字体大小,不会根据系统的“字体大小”辅助选项来进行缩放 |
-
Please register or login to post a comment