A. Set the topic to realize full screen directly in AndroidManifest. set the Activity topic in the xml file to full screen mode android: theme = "@ android: style/Theme. noTitleBar. fullscreen "B. Full Screen code implementation requires two steps: 1. Hide the title bar requestWindowFeature (Window. FEATURE_NO_TITLE); 2. Hide the status bar www.2cto. comgetWindow (). setFlags (WindowManager. layoutParams. FLAG_FULLSCREEN, WindowManager. layoutParams. FLAG_FULLSCREEN); note that the preceding two methods must be executed before setContentView. Article Note: if you do not need full screen, you only need to write android: theme = "@ android: style/Theme. the NoTitleBar can be summarized as follows: if the first method is used, the title bar and the Information bar of the Activity will appear temporarily when the Activity is started, and then disappear. This is not the case if you use the second method. You are recommended to use the second method, which looks smoother.