public static float spToPx ( Context ctx , float spSize ) { return TypedValue . applyDimension ( TypedValue . COMPLEX_UNIT_SP , spSize , ctx . getResources ( ) . getDisplayMetrics ( ) ) ; }
Convert Scale - Dependent Pixels to actual pixels