Answers for "get phone width constant"

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

Browse Popular Code Answers by Language