Answers for "take measurements according to the width of the screen android studio"

3

how to get witdth of window android

// Java
DisplayMetrics displayMetrics = new DisplayMetrics();
getWindowManager().getDefaultDisplay().getMetrics(displayMetrics);
int height = displayMetrics.heightPixels;
int width = displayMetrics.widthPixels;
Posted by: Guest on June-07-2020

Code answers related to "take measurements according to the width of the screen android studio"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language