Android Question Panel1.Visible=True

lukeeyh

New Member
Hey b4ppc,
I have a problem with my coding what i want is

button 11 to make my panel visible
and then
button 13 to make the panel invisible

B4X:
Sub Globals
Dim Panel1 As Panel
End Sub

B4X:
Sub Button11_Click
    Panel1.Initialize("")
    Panel1.Visible=True
End Sub

B4X:
Sub Button13_Click
    Panel1.Initialize("")
    Panel1.Visible=False
End Sub

Panel1:
Parent: Activity

Button11:
Parent: Activity

Button13:
Parent: Panel1

If you can help please do
If this is in the wrong section please move it to correct section
Thanks in advance
 

anallie0

Active Member
Licensed User
Longtime User
You inizialize the panel but don't add to the activity. When you click the button the code doesn't finds the panel.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…