How To Zoomable Image In Sketchware

How to Add Zoomable Image In Sketchware


hello friends what's up today I am gonna showing you how to add zoomable image in sketchware

1. open your  project

2. add webview block then
 add linear vertical or scroll vertical
*linear vertical which is not scrollable and not to add more content or image
*scroll vertical which is scrollable and you can add more content and images unlimited
THIS DEPENDS ON YOU
This is very important you need first  add webview then add verticle scroll or linear ok like that 
otherwise this will not work ok⤵️⤵️⤵️


3. then add image blocks add images in project and set image
*TIP* If your creating a wallpaper app so create folder for image by vontent wise pike
pubg folder--- include only pubg photos
fortnite photos--- include only fortnite image

* if adding multiple images so you only set one name for all multiple images but sketchware will sit numbers like that
i set india
then sketchware set India_1 india_2 like that

4. now goto the event click on activity
now there you see on create click on that
and set blocks like that
Now in that block i set 
you need to first create number block you can create easily let i show you in gif⤵️
ok you will understand 😅
Now in the add source directly add this code ⤵️


5. Now go back then go inside the view
and add images you set like that

and then click on the imageview and set block and code like that ⤵️
In the webview load url add this url to show your image

file:///android_res/drawable/india_1

in india_1 this is name of image i set you set your image name

6. Now go back and go to the event activity and add on back pressed activity like that⤵️
and place blocks like that⤵️

Now thats all we all set now run project and enjoy and sorry for late upload 😓😓😓

Post a Comment