Imitation IOS status bar color and title bar color consistent example code

First create a tool class

Then call the method in the activity

Copy a lot of other people's online. The author doesn't spray me. I want to find and use it for myself in the future.

The above example code that imitates the color of IOS status bar and title bar is all the content shared by Xiaobian. I hope it can give you a reference and support more 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
分享
二维码
< <上一篇
下一篇>>