How to implement Android immersive status bar

Updated on number 2024-05-24
10 answers
  1. Anonymous users2024-02-11

    New features that are only supported above the Immersive Notification Bar. Not supported.

    Here's how it works:

    1.Create a new public style and set android:fitssystemwindows=true

    2.Modify, so that all activity styles are set to appbasetheme by default (*Different projects should be handled flexibly, and the activity styles of the author's project are uniform, so there is no problem with this setting, but in reality, different activities may call different styles, and readers need to set them according to their own projects).

    3.The implementation class of immersive notification bar has been added, and the implementation principle is very simple.

    1) Judge whether the current system version is above, and judge ** as follows:

    if ( = version_

    2) If it is greater than that, set the status bar to be transparent, ** as follows:

    3) Get the root rootview (decorview) of the activity, and then create a new view statebarview and add it to the rootview (here manually set an ID for it, and the next time you come in, first determine whether the rootview has created a statebarview, and if it has been created, you can directly get the view so as to prevent repeated creation and memory leak).

  2. Anonymous users2024-02-10

    Just install the Immersion Status Bar.

  3. Anonymous users2024-02-09

    In the floating color settings button, S stands for the top status bar, N stands for the bottom keybar, and R stands for Reset. Click S to set the color of the status bar to be displayed in an app, which will be displayed every time you enter.

    The purpose of this property is to allow the view to adjust its layout according to the system window (e.g. status bar), and if the value is true, it will adjust the paingding property of the view to make room for system windows (i.e., add a top padding to the view with the value of the status bar height).

  4. Anonymous users2024-02-08

    It's not that the full screen is the status bar, and the immersive status bar is the status bar that will be displayed when the full screen is full, and it's the same as the background color.

  5. Anonymous users2024-02-07

    It's too complicated to say, but the status bar is a transparent background. This way, the status bar is the color of that interface on any interface.

  6. Anonymous users2024-02-06

    Confidentiality v ate scared my a**,of.

  7. Anonymous users2024-02-05

    The traditional phone status bar is in the shape of a black bar, and some are the same as the phone owner.

  8. Anonymous users2024-02-04

    Immersive mode is when you don't click on the status bar when it automatically retracts and hides.

  9. Anonymous users2024-02-03

    The status bar is always black when you open the app on Android. The appearance of iOS7 gives the style of perfect integration of the notification bar icon and the program, and the appearance of MIUI 6 at the Xiaomi conference gives it the concept of "immersive status bar". Suddenly, this trend swept the Android mobile phone UI industry.

    A variety of software that simulates the immersive state bar has also emerged in an endless stream.

    Preparation:1A rooted phone (Android version greater than 2.)To install the Xposed framework, please refer to the following for the installation method: [Click to jump.]

    How to install the immersive status bar:

    4.After installation, tick the software in the "Module" of Xposed, and restart it. The software will take effect after restarting, but some software needs to be set up again. Use this software to perform a transparent status bar and pick up colors.

    5.In the status bar settings, we can ignore the software and select the foreground and back colors of the icons.

    After the setting button is opened, you can set the software immersion is the status bar separately, if you find that a soft orange fiber and Wu San have not changed color, open it, and turn it off after setting, simple and rude.

  10. Anonymous users2024-02-02

    The traditional mobile phone status bar is in the shape of a black bar, and some of them are obviously different from the main interface of the mobile phone. This also sacrifices the visual width to a certain extent, and the interface area becomes smaller.

    Immersion is the extension of the app interface to the status bar, and the application itself is immersed in the status bar, so if the third-party software does not assign the status bar, then it is naturally black. The status bar at the top and the virtual buttons at the bottom are hidden, drawing out from the edges when needed.

    Immersive mode. When this mode is enabled, the app's interface will occupy the entire screen, and the system will automatically hide the system's status bar and navigation bar, so that the app's content can be displayed in the maximum display range, increasing the large screen experience, and when you need to view notifications, you only need to swipe down from the top to call out the notification bar.

    There are actually two types of immersive modes:

    One is called "Immersive Mode", the status bar and virtual buttons will be automatically hidden, and the app will automatically be full-screen, in this mode, the application occupies all the space on the screen, and only when the user swipes down from the top edge of the screen, it will exit the immersive mode, and when the user touches other parts of the screen, it will not exit the mode. Shouting to stop the calendar.

    The other is called "Sticky Immersion Mode", which makes the status bar and virtual buttons translucent, and the app uses all the space of the screen, and when the user swipes down from the top edge of the screen, it will not exit the mode, but the system interface (status bar, navigation bar) will appear on top of the app view with a translucent effect, and only when the user clicks on the controls on the system interface, will exit the sticky immersion mode.

Related questions
3 answers2024-05-24

New features that are only supported above the Immersive Notification Bar. Not supported. Here's how it works: >>>More

3 answers2024-05-24

MVC, MVP and MVVM are the three common architectural design patterns, and the current use of MVP and MVVM is relatively widespread, of course, MVC is not outdated. >>>More

24 answers2024-05-24

The operating system of Android mobile phones is similar, taking Huawei mobile phones as an example, you can try the following screenshot methods: >>>More

8 answers2024-05-24

There is a similar article in the Lecheng Mobile Developers Alliance.

3 answers2024-05-24

Immersive holographic space is a type of holographic technology that also won the Nobel Prize in Physics in 1971. It was not until 2006 that this technology developed rapidly at home and abroad, and was mostly used for displays, performances, and film and television presentations. >>>More