+1
Beantwortet

Images Will Not Load

dbdesign vor 12 Jahren aktualisiert vor 12 Jahren 4
Hi, I am having trouble getting an image to load. I have uploaded the iPhone_BG.png img into my images foder in my AppCreation Studio. I do not get any errors when I open the app in fusebox and can even add a background color to the that will show. Here is my code:

I have also tried loading the source directly in the tag but got the same results.

I'm guessing that the image is not loading into the cache and therefore cannot be accessed? Is there a step that I am missing?
Sorry, it took all my tags and anything wrapped in them. I have taken out all the front brackets of my code in hope that it will not reject it but they are in my actual code.

wire>

classes>
/classes>

styles>
platform device="iPhone">
style name="myBackground-Image" source="images/iPhone_BG.png" />
/platform>
/styles>

main>
panel name="mainarea" width="100%" height="100%">
image name="myBackground" style="myBackground-Image" align="center" valign="center">/image>
/panel>
/main>

actions>
/actions>
/wire>
This issue has been resolved. Thanks!
Happy to hear you resolved this issue on your own. What was the issue? The code above, looks sufficient.
I'm not 100% sure, because it just kinda appeared. I'm guessing it was either some sort of cache issue on my phone that I was testing it on or the image had not uploaded completely.