Answers for "calculate size of screen android"

1

get screen size android

DisplayMetrics displayMetrics = new DisplayMetrics();
getWindowManager().getDefaultDisplay().getMetrics(displayMetrics);
int height = displayMetrics.heightPixels;
int width = displayMetrics.widthPixels;
Posted by: Guest on September-28-2020

Code answers related to "calculate size of screen android"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language