Android statusbar transparency method (adapted to different versions)

Full adaptation of transparent status bar

The status bar specifies where the phone status information is displayed at the top of the Android phone.

The transparent status bar is a new feature added to Android since 4.4. It can define the status bar according to the color we want, so that the titlebar can be integrated with the status bar to increase the sense of immersion.

We need to adapt statusbar to different versions. Let's see one by one

values/styles.xml

values-v19/styles.xml

values-21/styles.xml

values-23/styles.xml

Specific use

Display effect

4.3 following

four point four

five

six

The above is the whole content of this article. I hope it will be helpful to your study, and I hope you can support programming tips.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>