Greetings, my question is how to take the data of the position of the panel (value) that is added to a ScrollView when clicking (label, imageview etc)
B4X:
Sub FillScrollView
Dim Bitmap1 As Bitmap
Dim Panel0 As Panel
Dim PanelTop, PanelHeight, Label2Top, ProgressBarTop, ProgressBarWidth As Int
Dim Progress As Int
Bitmap1.Initialize(File.DirAssets,"Icon.png")
PanelTop=0
Panel0=ScrollView1.Panel
Panel0.Color=Colors.Gray
For i=0 To 99
Dim Panel1 As Panel
Dim ImageView1 As ImageView
Dim ProgressBar1 As ProgressBar
Panel1.Initialize("")
PanelHeight=99dip
Label2Top=75dip
ProgressBarTop=65dip
ProgressBarWidth=210dip
Panel0.AddView(Panel1,0,PanelTop,ScrollView1.Width,PanelHeight)
Panel1.Color=Colors.Black
ImageView1.Initialize("")
Panel1.AddView(ImageView1,5dip,5dip,65dip,65dip)
ImageView1.Bitmap=Bitmap1
Dim Label1, Label2,Label3, Label4, Label5,label6,label7,label8 As Label
Label1.Initialize("")
Panel1.AddView(Label1,80dip,5dip,240dip,30dip)
Label1.Color=Colors.Black
Label1.Tag="Label1"
Label1.Text=Text1
Label2.Initialize("")
Panel1.AddView(Label2,80dip,Label2Top,240dip,30dip)
Label2.TextSize=14
Label2.Tag="Label2"
Label2.Text=Text2
Label2.TextSize=15
Label3.Initialize("")
Panel1.AddView(Label3,80dip,30dip,240dip,30dip)
Label3.Tag="Label3"
Label3.Text=Text3
Label3.TextSize=11
Label4.Initialize("")
Panel1.AddView(Label4,10dip,70dip,60dip,30dip)
Label4.Tag="Label4"
Label4.Text=Text4
Label4.TextSize=11
Label4.Gravity=Gravity.BOTTOM
Label5.Initialize("")
Panel1.AddView(Label5,80dip,45dip,240dip,30dip)
Label5.Tag="Label5"
Label5.Text="12.000bs"
Label5.TextColor = Colors.yellow
Label5.TextSize=11
Label4.Gravity=Gravity.CENTER
PanelTop=PanelTop+PanelHeight+1dip
Next
Panel0.Height=PanelTop
End Sub