Search code examples
androidsplash-screenappcelerator-titaniumappcelerator-alloy

Appcelerator - default splash screen doesn't fit on android and cut from bottom


I am having a very strange problem all of a sudden for some time. I have always used the single default.png image for splash screen in android and it always worked great but for past some time I noticed that now the splash screen doesn't fit and show cutted from bottom.

I created a new blank default project and run it on genymotion emulator and following is the result:

Splash screen image (default.png):

enter image description here

App splash screen: enter image description here

I've tried it on Genymotion emulator

Google Nexus 5X - 6.0.0 - API 23 - 1080x1920
Google Nexus 4 - 5.1.0 - API 22 - 768x1280

I've tried it running with SDKs 5.1.0.GA, 5.1.2.GA, 5.2.0.GA, 5.2.2.GA, 5.3.0.v20160421080259 and 5.4.0.v20160608165242 with no luck :(

iPhone works perfectly. This bug came all of a sudden and I really have no clue what could be the problem. Please help!!!


Solution

  • I've finally found the problem. The default.png works perfectly. Looks like the navigation bar in Nexus devices is the culprit which appears on top of splash screen so it looks cutted/stretched. The issue is reported here: https://jira.appcelerator.org/browse/TIMOB-19769

    The workaround is to set <fullscreen>false</fullscreen> to true in tiapp.xml