Android Question Button or EditText still clickable under a solid panel

Mike1970

Well-Known Member
Licensed User
Longtime User
Hi everyone.
I have big problem, i have two edittexts and a button, then i have i white (#FFFFFF) panel on top of those.
The problem is that it's possible to click the button or the edittext anyway, even if there is the panel hiding them (with alpha 255).
 

Sagenut

Expert
Licensed User
Longtime User
Did you created the sub to intercept the touch on the panel?
B4X:
Sub YourPanelEvent_Touch (Action As Int, X As Float, Y As Float) As Boolean
    Return True
End Sub
Change YourPanelEvent with the Event Name that You used in the Panel.Initialize
 
Upvote 0

Mike1970

Well-Known Member
Licensed User
Longtime User
Did you created the sub to intercept the touch on the panel?
B4X:
Sub YourPanelEvent_Touch (Action As Int, X As Float, Y As Float) As Boolean
    Return True
End Sub
Change YourPanelEvent with the Event Name that You used in the Panel.Initialize
In this way the touch will be ingored?
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
the return true consumes the touch
 
Upvote 0
Top