Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

URLImage does not retain placeholder if Internet image was not found

Tags:

codenameone

I am creating a URLImage with a placeholder. The placeholder is first displayed until the Image is downloaded from the internet. If the Internet image is not found, the placeholder image is removed and a blank / white space is displayed.

I would like to keep the placeholder image in case the URLImage is not found. Is there a URLImage option to accomplish this?

like image 390
3lix Avatar asked Jan 24 '26 02:01

3lix


1 Answers

Update your project library by right clicking your project and select properties on Netbeans. The latest Codename One lib fixed that issue and blank images should no longer be created.

You may have to clear your .cn1 folder for this to work fine on Simulator and delete app on phone before re-installing to clear cache on actual devices.

like image 187
Diamond Avatar answered Jan 26 '26 23:01

Diamond



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!