Android Question the even click of image view not work

azzam223

Active Member
Licensed User
Longtime User
hello

when i hide imageview and show it again the event click of the image not work
how can i make it work
 

mangojack

Expert
Licensed User
Longtime User
How are you ' hiding ' the imageview ?. Using the Visible property there should be no issue.

Maybe post code to show show your steps.
 
Upvote 0

canalrun

Well-Known Member
Licensed User
Longtime User
I use the following code to hide or show views or panels:

B4X:
Sub vwShow(vw As View, flg As Boolean)
  If (vw.Visible = flg) Then Return
 
  vw.Enabled = flg
  vw.Visible = flg
 
  If (flg) Then vw.BringToFront Else vw.SendToBack
End Sub

It might be overkill, but it has always worked successfully.

Barry.
 
Upvote 0
Top