Hi
I've inserted 2 buttons, each one has an image and the buttons work but the image does not appear. I do knot know where the problem is.
Check the Background Color of the buttons.
If it is not clear, it would block the image.
Which image? Maybe it's white or transparent.
Hello Lorenzo
- Is the image in the App's Assets (Media)?
- Is it a supported file type (typically PNG or JPG)?
- Is it a similar size to the button, not a huge image?
- Is the image file name properly defined (e.g. myImage.png)?
- Does it display in the Media preview?
Small (but possibly unrelated) question: does the resolution of the file affect the image that appears? I thought App Inventor would just compress the image to fit in.
App Inventor does not do that - so, choose a file type that scales up well and produce an image that is only slightly dimensionally bigger than the button component. See my website about optimising images for Android. Best to avoid compressing images as the device has to decompress them to display.
https://www.professorcad.co.uk/appinventortips#TipsImages
https://www.professorcad.co.uk/appinventortips#TipsGui
1 Like