Answers for "android java get width and length"

1

how to get android windows width

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

android how to get width of widows

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

Code answers related to "android java get width and length"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language