[m2]
[1.0.1] [状态栏适配+整体适配]
This commit is contained in:
@@ -19,14 +19,18 @@ public class ScreenHelper {
|
||||
|
||||
int baseWidth = 2560;
|
||||
int baseHeight = 1600;
|
||||
boolean baseOnWidth = true;
|
||||
|
||||
if (AppIdentityModeUtils.isM1(FunctionBuildConfig.appIdentityMode) || AppIdentityModeUtils.isM1(FunctionBuildConfig.appIdentityMode)) {
|
||||
if (AppIdentityModeUtils.isM1(FunctionBuildConfig.appIdentityMode)) {
|
||||
baseWidth = 1920;
|
||||
baseHeight = 1080;
|
||||
} else if (AppIdentityModeUtils.isM2(FunctionBuildConfig.appIdentityMode)) {
|
||||
baseWidth = 1080;
|
||||
baseHeight = 1920;
|
||||
}
|
||||
|
||||
AutoSizeConfig.getInstance()
|
||||
.setBaseOnWidth(false)
|
||||
.setBaseOnWidth(baseOnWidth)
|
||||
.setCustomFragment(true)
|
||||
.setDesignWidthInDp(baseWidth)
|
||||
.setDesignHeightInDp(baseHeight)
|
||||
|
||||
Reference in New Issue
Block a user