can scrollview be added/initiase to panel??/ i guessed/hoped so
image i got it, but let say I have a sql record containing image/text/video. I got to display five records.. If I click on any single entry it should generate event.
Also it should able to differetiate image/video.text event
if I say I display in tabular format, then how to achieve this..
you can add a scrollview to a panel but why do you need the extra panel?
the tabular stuff... in untested code it could be something like this
B4X:
tilesize=100%x/2
for x=page*5 to (page+1)*5
dim iv as imageview
iv.initialize("ivClick")
iv.tag(x)
mypanel.addview(iv,(x mod 2)* tilesize, floor(x/2)*tilesize,tilesize,tilesize)
next
sub ivClick_click
dim iv as imageview
iv=sender
log(iv.tag &" clicked")
end sub
that should (if it works) generate a 3 rows where 2 rows have 2 images and 1 only 1.