px2sp
Converting px to sp.
The DisplayMetrics.scaledDensity is deprecate from Build.VERSION_CODES.UPSIDE_DOWN_CAKE, click scaledDensity to get more information.
Return
a sp value.
Parameters
pxValue
a px value.
Converting px to sp.
The DisplayMetrics.scaledDensity is deprecate from Build.VERSION_CODES.UPSIDE_DOWN_CAKE, click scaledDensity to get more information.
a sp value.
a px value.