Android Question Visible control issue

Matteo Granatiero

Active Member
Licensed User
I would like to see imageview1, imageview1 invisible and imageview2 be visible.
I tried :
sub imageview1.clik
Imageview1.visible = false
Imageview2.visible = true
end sub

But the debug get me error
 

Attachments

  • Immagine.png
    Immagine.png
    24.3 KB · Views: 155

Star-Dust

Expert
Licensed User
Longtime User
The code you posted is incorrect, the correct one is:
B4X:
Sub ImageView1_Clik
   ImagVview1.visible = False
   ImageView2.visible = True
End Sub

You have to indicate what row raises the error. Within the Sub Intercepting the Click Event?
If so, then it clicked ImageView1 one when ImageView2 has not yet been initialized or added to a view

Attach the code where you initiate the views.
 
Upvote 0
Top