Android Question Recursive window in different .bal

Giusy

Active Member
Licensed User
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
 

Marcus Araujo

Member
Licensed User
Longtime User
Hello,

What kind of choices is it? Textual, pictures?
Could you provide us a screenshot?

There may be libraries that could help you.
 
Upvote 0

Giusy

Active Member
Licensed User
[SOLVED]
B4X:
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
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
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.
 
Upvote 0
Top