[2.8.0-f] 屏幕适配
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package com.mogo.commons.screen;
|
||||
import android.content.Context;
|
||||
|
||||
|
||||
import me.jessyan.autosize.AutoSizeConfig;
|
||||
|
||||
public class ScreenHelper {
|
||||
|
||||
/**
|
||||
* 正常屏幕和长屏分辨设置
|
||||
*/
|
||||
public static void setScreenConfig(Context context) {
|
||||
AutoSizeConfig.getInstance()
|
||||
.setBaseOnWidth(false)
|
||||
.setCustomFragment(true)
|
||||
.setDesignWidthInDp(2560)
|
||||
.setDesignHeightInDp(1600);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user