Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18908] Android: 5 9-patch splash screen images don't show up correctly

GitHub Issuen/a
TypeBug
PriorityHigh
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
LabelsAndroid5, android, splash-screen
ReporterJustin Toth
AssigneeUnknown
Created2015-05-13T01:32:06.000+0000
Updated2018-02-28T19:54:59.000+0000

Description

9-patch splash screen images aren't showing up correctly in Android 5, they show black squares on the left side of the screen. !housters-splash-bug.png|thumbnail! On Android 4 they show up correctly and if I change to non-9-patch they work on Android 5. I've attached a sample 9-patch for reproducing.

Attachments

FileDateSize
background.9.png2015-05-13T01:31:22.000+000017861
housters-splash-bug.png2015-05-13T01:13:38.000+000070588
NinePatch.zip2015-05-15T04:31:58.000+0000240755
Screen Shot 2015-05-13 at 2.15.21 PM.png2015-05-13T08:25:48.000+000040809

Comments

  1. Bruce Pulley 2016-01-19

    I'm observing this issue under Titanium SDK 5.1.1.GA on an Android device running Android 6.0 - Marshmallow on an application using 9 patch splash screens. I'm currently updating the project from Titanium SDK 3.5.0.GA, this issue does not present on the version using the older SDK. Same symptoms, there are those two black rectangles on the splash screen. Older android versions display the splash screen correctly (tested on Samsung Captivate running Android 4.0.4 and Samsung Galaxy S 3 running 4.4.4). Has there been any progress made on this issue, or is there a known work-around (aside from moving away from 9 patches)? It looks very sloppy to have an app launch with parts of the splash screen missing, I would rather not send this app to my client with the first piece of UI it displays broken on some devices.
  2. Dawson Toth 2016-01-22

    I can reproduce it on a Nexus 7 running Android 5.1.1. Hieu, you tested with 5.0.0.GA and 5.0.2.GA, but did you try 5.1.0GA? I added you as a collaborator on the EngiWeek repo so you should be able to see it now.
  3. Tim Rogus 2016-02-18

    I'm seeing the same two black boxes in Nexus 6 simulator, but on on Samsung S6 running 5.1.1, 9-slice launch image is just showing the top black area, middle black area is gone. Spent 2 hours troubleshooting before finding this thread...
  4. James O'Leary 2016-03-28

    I have the same problem with my own images on my Galaxy S5. There are black boxes that appear over the splash screen
  5. James O'Leary 2016-03-29

  6. Bruce Pulley 2016-03-29

    @James O'Leary, Thanks for the follow up, you're a life saver! I've tested Fokke's work-around in my codebase and it resolves the issue for me as well.

JSON Source