public static float sipToPixel ( Resources resources , float sip ) { float density = resources . getDisplayMetrics ( ) . scaledDensity ; return sip * density ; }
Convert the sip to pixels based on density scale .