hyphenate_SDK3.0  3.0.1
hyphenatejavaIMSDK
Static Public Member Functions | List of all members
com.hyphenate.util.DensityUtil Class Reference

Static Public Member Functions

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)
 

Member Function Documentation

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

Parameters
context
pxValue
Returns
static int com.hyphenate.util.DensityUtil.sp2px ( Context  context,
float  spValue 
)
static

sp to px

Parameters
context
spValue
Returns

The documentation for this class was generated from the following file: