How to get actual screen size after Android N?
问题 Since Android N introduces split screen, the window size of your app can be half of the original. I found that getActivity().getWindowManager().getDefaultDisplay().getMetrics(metrics); no longer always returns the actual device screen size anymore because in split screen mode the display's height will be your app's window height instead. Is there any other API I can use to get the actual screen size? 回答1: Display.getRealMetrics(DisplayMetrics) will return the actual display size. 回答2: You can