Splash screen with wrong status bar area?

27 views
Skip to first unread message

cha...@moondustapp.com

unread,
Jul 5, 2016, 1:47:37 PM7/5/16
to CodenameOne Discussions
Native theme iOS7.  Tested on iPhone 5S running iOS 8.

It seems like the generated splash screens have their transparent status bar region in the wrong place? Screenshot enclosed.  I wonder if Apple will accept an app that partially obscures the status bar during loading. 

I tried with and without codename1.arg.ios.enableStatusBar7=false.

Thanks!
black bar.PNG

Shai Almog

unread,
Jul 6, 2016, 1:31:25 AM7/6/16
to CodenameOne Discussions, cha...@moondustapp.com
Why do you have a black splash screen?
You can style the StatusBar background color to exclude it from your background.

Charles Hope

unread,
Jul 6, 2016, 1:41:53 AM7/6/16
to Shai Almog, CodenameOne Discussions
I was a little slow in capturing the screenshot there. Here is a better one, showing the actual splash screen. Same issue. Maybe I have a flag set wrong somewhere?


image1.png

Shai Almog

unread,
Jul 7, 2016, 12:05:44 AM7/7/16
to CodenameOne Discussions, shai....@gmail.com, cha...@moondustapp.com
How do you want this to appear? What are you interested in changing exactly?

FYI you can unzip the IPA file and see the screenshot files we generate within.


Charles Hope

unread,
Jul 7, 2016, 1:20:11 AM7/7/16
to Shai Almog, CodenameOne Discussions
The status bar gets partially covered when the app is booting. So I suppose either the entire top region should be transparent (instead of only a rectangle), or there shouldn't be any transparent region at all.

Is everyone else seeing the same covered region above the status bar while booting, and ignoring it? Or am I doing something odd?



Sent from my iPhone

Shai Almog

unread,
Jul 8, 2016, 1:29:50 AM7/8/16
to CodenameOne Discussions, shai....@gmail.com, cha...@moondustapp.com
The StatusBar style has padding so your app content doesn't display on the status bar area.
It is positioned in the TitleArea so what you are seeing is the TitleArea background.

You can either style the TitleArea to transparency or do something like this (assuming you use toolbar):

form.getToolbar().setUIID("Container");


Reply all
Reply to author
Forward
0 new messages