Overlap View Extension: Create overlying layout

In my app, horizontal scroll arrangement is used to load images in 100x100 pixels

Requirement: when an image is clicked, that image (original size) should be displayed over the horizontal scroll arrangement

since I could not get this done, I am using another layout to display the image.

The overlay extension doesn't work here.

Your help is much appreciated
gallery.aia (46.3 KB)

Why HSA? Please explain in more detail, show your relevant blocks and the Designer layout.


Try this:

gallery (2).aia (46.7 KB)

Thank you so much. Great help.


how do I remove this scroll line?

Try this:

For me, the scrollbar was still appearing at runtime (though disappearing after about 1/2 second. I added a clock timer to make the gallery visible after 100ms, and this seems to resolve that issue.

image

works fine. thanks.

newGallery (1).aia (169.2 KB)
thanks for solving my earlier issue. Now I have added another scroll arrangement and tried to display the image in its original size. It doesn't work.

have you set all the images clickable?


i have a horizontal arrangement of images. When an image is clicked, it should be displayed overlay in its full size with a close button. is it possible

From your image, the overlay cannot really be any bigger, given it almost fills the width of the screen ?

yes, can this be done?

I would be very pleased if its possible darken the background layers when I open an overlapped layer. I mean, the android system makes this already when we use the spinner or notifier components. Then it must be possible, or not?





which extension are you using

com.vsatish.overlapview.aix

https://community.appinventor.mit.edu/t/overlap-view-extension-create-overlying-layout/27540

This is possibly the wrong extension for getting a darkened background. You need one that creates a dialog, and also ensure that your dialog does not completely fill the screen.

https://puravidaapps.com/extensions.php

then CTRL+F "dialog"

I tried the "overlapTestExtn.aia" but never got it working with the AI companion. With different phones, with different Android versions. Screen initialisation seems to abort, companion shows start display (The two 'connect' buttons) Always get the error:
Runtime Error

Unable to load extensions.java.lang.StringIndexOutOfBoundsException: String index out of range: -1
Note: You will not see another error reported for 5 seconds.

-Although there seem to be some kind of connection, but without any display...
Creating an .apk does work, (at least for the mentioned test app) but testing a kinda bigger app would be a pain in the a...

This is a general issue with the companion app, which has been reported here

Taifun

Ok, thanks for the link!