The width of the screen refers to the pixel value of the wide side of the screen. The height of the screen refers to: the pixel value of the high side of the screen. Screen size is: diagonal size. If these three values are correct, they must be the same as the densityDpi obtained by DisplayMetrics.
The width of the screen refers to the pixel value of the wide side of the screen.
The height of the screen refers to: the pixel value of the high side of the screen.
Screen size is: diagonal size.
If these three values are correct, they must be the same as the densityDpi obtained by DisplayMetrics.