In the Android application, whether to display the virtual navigation bar and status bar when the gesture is swiped up is controlled by the system property

In the Android application, whether to display the virtual navigation bar and status bar when the gesture is swiped up is controlled by the system property

In Android application development, sometimes we hope that the application can control whether to display the virtual navigation bar and status bar when the gesture slides up in full-screen mode. This article describes how to use system properties to achieve this functionality.

First, in the AndroidManifest.xml file, we need to set the full screen mode for the application. <application>Add the following attribute to the tag :

<application
    ...
    android:theme="@style/AppTheme">

Next, define the AppTheme style in the res/values/styles.xml file and add the following properties:

<

Guess you like

Origin blog.csdn.net/update7/article/details/132374481