开发者

Changing image "source" dynamically in runtime

开发者 https://www.devze.com 2022-12-22 23:26 出处:网络
i am trying to modify during runtime an image in my application, this image is located inside assets folder, so thats why i dissable -use-network=false flag, then i call something like this:

i am trying to modify during runtime an image in my application, this image is located inside assets folder, so thats why i dissable -use-network=false flag, then i call something like this:

img.source="../assets/pict开发者_高级运维.png";

but it's not working. i know its a silly question but i am stuck here. any hint i appreciate.

Br


I don't think you need the ".." all of my images are in my "img" folder and I call them with "/img/image.png"

0

精彩评论

暂无评论...
验证码 换一张
取 消