Android removes the hidden bottom navigation bar effect to remove the height effect of the Activity occupying the entire screen

//Remove the effect of
the hidden navigation bar at the bottom. Commenting out this line in the code will not hide the navigation bar.

//View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION

//Remove the height effect of Activity occupying the entire screen
and include the code of these methods in the code

 //Display display = windowManager.getDefaultDisplay();
 //       DisplayMetrics dm = new DisplayMetrics();
 //       display.getMetrics(dm);

Guess you like

Origin blog.csdn.net/ShiXinXin_Harbour/article/details/111470268