Android Tutorial call views added in scrollview

Rachbob

Member
Licensed User
hello,

I found that there is no click event for scrollview. I wonder how can I call each view added for a later traitement. please if you have an idea. thanks.
 
Use xCustomListview instead of Scrollview.
 
I have one scrollview filled with several imageviews. I need a click event to display each image into a full screen activity.
 
I have one scrollview filled with several imageviews. I need a click event to display each image into a full screen activity.
you should use the view's click event.
Set the same Event Name to all the ImageViews, like "Image", for example. Then:
B4X: Copy
Sub Image_Click
    Dim iv As ImageView = Sender
    ' here do what you want with iv
End Sub
 
Back
Top