ScreenUtil.bottomBarHeight//Bottom safe zone distance, suitable for buttons with full screen
ScreenUtil.statusBarHeight//Status bar height , Notch will be higher Unit px
ScreenUtil.statusBarHeight//Status bar height , Notch will be higher
ScreenUtil.textScaleFactor//System font scaling factor
ScreenUtil().scaleWidth//Ratio of actual width dp to design draft px
ScreenUtil().scaleHeight//Ratio of actual height dp to design draft px
ScreenUtil().scaleWidth//The ratio of actual width to UI design
ScreenUtil().scaleHeight//The ratio of actual height to UI design
0.2.sw//0,2 vezes a largura da tela
0.5.sh//50% altura da tela
...
...
@@ -129,19 +130,21 @@ Altura também é adaptada de acordo com o setWidth para garantir que não tenha
O método setHeight é a principal forma de adaptar a altura, se quiser controlar a altura e a realidade de uma tela na UiUsed quando a mesma for exibida.