-
public class UnitUtils
-
-
Method Summary
Modifier and Type Method Description final static Integerpx2dp(Float value)将px值转换为dip或dp值,保证尺寸大小不变 final static Integerdp2px(Float value)将dip或dp值转换为px值,保证尺寸大小不变 final static Integerdp2px(Integer value)将dip或dp值转换为px值,保证尺寸大小不变 final static Integerpx2sp(Float value)将px值转换为sp值,保证文字大小不变 final static Integersp2px(Float value)将sp值转换为px值,保证文字大小不变
-