Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to get android windows width

DisplayMetrics displayMetrics = new DisplayMetrics();
getWindowManager().getDefaultDisplay().getMetrics(displayMetrics);
int height = displayMetrics.heightPixels;
int width = displayMetrics.widthPixels;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #android #windows #width
ADD COMMENT
Topic
Name
9+7 =