I have a form which I would like to use as a splash screen, showing an image.
I added a JPEG as a multi-image, maintaining the default DPIs.
I created a new style in the default theme, with the component name equal to the UIID of the form I'm targeting.
In the "background" tab of the style, I unchecked "Derive", and selected the image in the drop-down.
In the "border" tab of the style, I unchecked "Derive", and selected "empty" border style.
In the "color" tab of the style, I unchecked "Derive" for each of the three options (foreground, background, transparency).
But in the Resource Editor simulator, and the device simulator, the splash screen was totally black.
So I created a container in the form, and gave it the UIID. Now in the Resource Editor, I saw the image in the form preview! But when running, it was still black.
The style preview, at the bottom of the style editing dialog, always showed the top of the image I'm trying to display. But no matter what happens, the simulator (and the app itself) never show this image.
Is there a subtle step that I'm missing?
Thanks!
PS, on this page https://www.codenameone.com/manual/appendix-ios.html your pixel sizes are reversed; they are in the form (y, x) instead of (x, y).
My form had its own Enabled checkbox turned off! Checking that, now the background shows. I knew it was going to be something lame.
Thank you!