Created
February 21, 2017 05:28
-
-
Save vinaysshenoy/c52ecb721090f06935526ce11b0dee40 to your computer and use it in GitHub Desktop.
SpPxConvertion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static float spToPx(float sp) { | |
return TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_SP, sp, Resources.getSystem().getDisplayMetrics()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment