Android Question Panel touch not working?

Alberto Michelis

Well-Known Member
Licensed User
Longtime User
Hi,
I have a Panel with a view inside and I need to detect the "move the finger from right to left or viceversa.
I tried that:

Precios.Initialize(Me, "Precios")
PanelPrecios.AddView(Precios.AsView, 0, 0, 100%x, PanelPrecios.Height)
PanelPrecios.Visible=False
PanelPrecios.Color=Colors.Black

Sub PanelPrecios_Touch (Action As Int, X As Float, Y As Float)
Msgbox(Action&" "&X&" "&Y,"")

End Sub

Sub Precios_Touch (Action As Int, X As Float, Y As Float)
Msgbox(Action&" "&X&" "&Y,"")
End Sub

But nothig happend, no message at all.

How can I do it?
Thanks
 

Alberto Michelis

Well-Known Member
Licensed User
Longtime User
Hi,
I have a Panel with a view inside and I need to detect the "move the finger from right to left or viceversa.
I tried that:

B4X:
Dim Precios As CustomListView
Dim PanelPrecios As Panel

Precios.Initialize(Me, "Precios")
PanelPrecios.AddView(Precios.AsView, 0, 0, 100%x, PanelPrecios.Height)
PanelPrecios.Color=Colors.Black

Sub PanelPrecios_Touch (Action As Int, X As Float, Y As Float)
    Msgbox(Action&" "&X&" "&Y,"")
End Sub

Sub Precios_Touch (Action As Int, X As Float, Y As Float)
    Msgbox(Action&" "&X&" "&Y,"")
End Sub

Sory Erel I dont want you to guess nothing, I'm a beginer.

Thanks
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0
Top