This is regarding me making my own navbar (see this thread for more info).
Normally the status bar piggybacks on the color of the navigation bar. In my case I'm building my own navigation bar, which means I'm hiding the real one. And when I hide the real one, the status bar doesn't pick up the (disabled) navigation bar color.
Which brings me to my question: How to set the color (both background and text color) of the status bar?
I found a web page showing how to do this (at least the background) using Swift, but I don't really grasp how to turn this into B4i code... :-/
This is the Swift code:
And here are some examples from that page, showing different results:
Normally the status bar piggybacks on the color of the navigation bar. In my case I'm building my own navigation bar, which means I'm hiding the real one. And when I hide the real one, the status bar doesn't pick up the (disabled) navigation bar color.
Which brings me to my question: How to set the color (both background and text color) of the status bar?
I found a web page showing how to do this (at least the background) using Swift, but I don't really grasp how to turn this into B4i code... :-/
This is the Swift code:
B4X:
UIApplication.shared.statusBarView?.backgroundColor = UIColor.white
And here are some examples from that page, showing different results: