Android Question lock inputs

SamuelP

Member
Licensed User
Hallo,

while I wait for the SQL-Server to return data using
B4X:
Wait For DBHelper_Result (dt As DBResult)
I want to prevent hat the user clicks on any view. I want to force waiting. Is there any way?

Samuel
 

MarkusR

Well-Known Member
Licensed User
Longtime User
maybe like this, in theory its recursive
B4X:
Activity.GetView(0).Enabled=False
 
Upvote 0

lemonisdead

Well-Known Member
Licensed User
Longtime User
Another option here could be to put a panel over the whole Activity's layout and return true at panel's touch event
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
Using the suggestion of lemonisdead, add an empty click event for the Panel, this will consume the events.
Set the Panel.Visible property to true to block the events and set it to False to eanble the events.
 
Upvote 0
Top