官方API: A structure describing general information about a display, such as its size, density, and font scaling. To access the DisplayMetrics members, initialize an object like this: DisplayMetrics metrics = new DisplayMetrics(); getWindowManager().g…