如何在appinventor中使用webviewer查看多个图像?

时间:2017-05-25 07:58:58

标签: app-inventor

enter image description here

我的代码在上面但是没有显示图像。有什么问题?

1 个答案:

答案 0 :(得分:1)

There can be only one URL at a time. You're entering two URLs together. It does not work like a slide show. Web viewer can handle only one URL at a time.

But to view two images, you can have two ways.

i) Get 2 web viewers and assign different path to them.

ii) create 2 buttons and set property:

on button1.press-> set webviewer.url to image 1
on button2.press-> set webviewer.url to image 2

Hope you got the point here.

I thought of another alternative here. Just create an HTML document with all your image. And set web viewer URL to that HTML page.(of course you need to include that HTML file)