hyphenate_SDK3.0  3.0.1
hyphenatejavaIMSDK
静态 Public 成员函数 | 所有成员列表
com.hyphenate.util.DensityUtil类 参考

静态 Public 成员函数

static int dip2px (Context context, float dpValue)
 
static int px2dip (Context context, float pxValue)
 
static int sp2px (Context context, float spValue)
 
static int px2sp (Context context, float pxValue)
 

成员函数说明

static int com.hyphenate.util.DensityUtil.dip2px ( Context  context,
float  dpValue 
)
static

dp to px

static int com.hyphenate.util.DensityUtil.px2dip ( Context  context,
float  pxValue 
)
static

px to dip

static int com.hyphenate.util.DensityUtil.px2sp ( Context  context,
float  pxValue 
)
static

px to sp

参数
context
pxValue
返回
static int com.hyphenate.util.DensityUtil.sp2px ( Context  context,
float  spValue 
)
static

sp to px

参数
context
spValue
返回

该类的文档由以下文件生成: