Created
April 14, 2015 10:43
-
-
Save ishitcno1/a5ccf920424e998b56fb to your computer and use it in GitHub Desktop.
android display width height
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
DisplayMetrics displaymetrics = new DisplayMetrics(); | |
getWindowManager().getDefaultDisplay().getMetrics(displaymetrics); | |
int height = displaymetrics.heightPixels; | |
int width = displaymetrics.widthPixels; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment