android get screen width and height

Solutions on MaxInterview for android get screen width and height by the best coders in the world

showing results for - "android get screen width and height"
Maximiliano
08 Apr 2018
1DisplayMetrics displayMetrics = getResources().getDisplayMetrics();
2float dpHeight = displayMetrics.heightPixels / displayMetrics.density;
3float dpWidth = displayMetrics.widthPixels / displayMetrics.density;
4Log.d("MyHeight", dpHeight+"");
5Log.d("MyWidth", dpWidth+"");
Federica
01 Jan 2018
1Display display = getWindowManager().getDefaultDisplay();
2Point size = new Point();
3display.getSize(size);
4int width = size.x;
5int height = size.y;
6
queries leading to this page
get full screen size android studiohow to get width on androidandroid get device width and heightandroid get screen widthscreen height get in xml androidget width mobile androidget width height view androidandroid studio widthandroid studio get screen widthget width of phone android studioget size of display androidandroid view get width in pixelsget display height and width androidget width and height of screen androidhow to get device width in androidmake width match height in androidandroid 3aheight dimensionscreen height androidget width of element androidandroid get screen width and height programmaticallyhow to get height and width of screen in android kotlin get screen width android studioandroid get width of viewhow get the width and height of the screen android studiohow to get the screen width in androidget screen height android studioandroid studio get device screen widthhow to get height and width of screen in androidwidth and height of android screenhow to get height and width of screen in android programmaticallyget width of screen androidget scale using width androidandroid studio get height of screenget height size androidhow to get screen height in androidstandard width and height of android screenandroid get width in percenthow to get width and height of screen in android using javaandroid get screen heighthow to get screen width in androidget screen width androidfind width of androidget height and width in androidget width percent androidget screen height android javaandroid set view width from screen sizeandroid studio get screen width and heighthow to get device height and width in android android studioget current width dp androidhow to get screen width in android studiohow to change width in androidhow to get view default width and height in androidget screen width size in androidandroid get screen sizeget size screen androidandroid width based on heightandroid get screen heigth and widthhow to get width and height of phone in androiddisplay size androidandroid studio get width and height of screenget screen height and width androidget width and height of component in androidhow to get my android screen width and heightget width screen androidandroid 3a get width and height of android deviceheight in current screen android studioandroid get width of screenget width of device androidhow to set height based on screen resolution in android xmlandroid studio get width of screenget scale height width androidhow to get width of screen in androidandroid screen widthhow to get screen height and width in androidget height pixels androidget screen size in androidandroid screen size height in get screen height androidandroid get complete screen sizeandroid studio width of screensetting width to screen width in androidhow to get screen size android studioheight android screenandroid xml get widthandroid display mertices get width and height how to get screen size in androidandroid screen size based on height and widthhow to get display width and height in androidhow to get screen height and width in android programmaticallyset width and height according to screen resolution androidsetting width to screen width in android javaheight android screen misureandroid studio set widthhow to get android screen width android studiohow to get width of phone in androidget screen size androidhow get width in android in newest wayhow to get mobile screen width and height in androidget screen height in androidhow to get width in android studiohow to get device height and width in androidset height to screenheight 2f 3 androidandroid get screen width and height pixelsandroid sizeget the screen size androidget width dp androidget width androidhow to get screen width androidhow to get screen height on androidhow i can get width dvies in android java codeandroid studio get screen sizeandroid width sizeandroid get current screen sizehow to get full screen size in android studioscreen width android studioandroid screen width allget screen height in sp in androidandroid studio width 100 25android get screen width and heightget screen height insetter androidandroid get width and height of screen programmaticallyandroid get display widthdifferent android screen size based on height and widthget screen width and height androidandroid studio how to get screen widthget width of layout androidget screen width and height pixele androidandroid phone width sizeandroid get screen width and height