Hi everybody!
I've a switch in a class that doesn't handle any event.
I initialize it in this way
and i added switch in a Global list to avoid class will be release (and for others stuff). Anyone can help me if is there other things to add? Thanks!
I've a switch in a class that doesn't handle any event.
I initialize it in this way
B4X:
Dim sw As Switch
sw.Initialize("switch")
p.AddView(sw,Main.MainPage.RootPanel.Width-66dip,6dip,51dip,29dip)
sw.Enabled = True
sw.Tag = SwList.Size
SwList.Add(sw)
and i added switch in a Global list to avoid class will be release (and for others stuff). Anyone can help me if is there other things to add? Thanks!