Hi,
I have to create a small window with choices.
I have to use this window in xxx.bal yyy.bal and zzz.bal.
Should I create it on each one invisible and then make it visible or are there other less elementary possibilities?
Thanks
Hi @Marcus Araujo
I don't have a screenshot because I have to decide how to create it all. The small window will contain checkboxes. This window will be the same for all 3.bal
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Private Button1 As Button
Private CheckBox1 As CheckBox
End Sub
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
Activity.LoadLayout("1")
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub Button1_Click
Activity.LoadLayout("2")
End Sub
Sub CheckBox1_CheckedChange(Checked As Boolean)
End Sub
I would suggest a CustomView.
This one you need to add it to each activity, but only one code module.
And you could also generate a B4X Library with it.
In this case you just add the libary to your project and you have direct access to the CustomView.