@Erel , even with Panels, dont work, because when you press one panel is working fine, but if you DO NOT UNPRESS and drag to another, this second one not firing the touch event
B4X:
Sub pnlButtonA_Touch(Action As Int, X As Float, Y As Float)
Log("Button A = " & Action & "/" & X & "/" & Y)
End Sub
Sub pnlButtonB_Touch(Action As Int, X As Float, Y As Float)
Log("Button B = " & Action & "/" & X & "/" & Y)
End Sub
Look this log below, in this point, when drag the finger from B to A, I dont start to receive the A events, any idea? or you mean create JUST ONE PANEL and put two fake buttons inside?
You need to use a single panel with 2 images, and handle just one event. Depending on the touch position, assign action to one or other as if they were 2 independent buttons
You need to use a single panel with 2 images, and handle just one event. Depending on the touch position, assign action to one or other as if they were 2 independent buttons