Android Question Recursive window in different .bal

Discussion in 'Android Questions' started by Giusy, Apr 16, 2019.

  1. Giusy

    Giusy Active Member Licensed User

    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?
  2. Marcus Araujo

    Marcus Araujo Member Licensed User


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

    There may be libraries that could help you.
    Giusy likes this.
  3. Giusy

    Giusy Active Member Licensed User

    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
    Marcus Araujo likes this.
  4. Giusy

    Giusy Active Member Licensed User

    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:
    End Sub
    Sub Activity_Resume
    End Sub
    Sub Activity_Pause (UserClosed As Boolean)
    End Sub
    Sub Button1_Click
    End Sub
    Sub CheckBox1_CheckedChange(Checked As Boolean)
    End Sub
    Marcus Araujo likes this.
  5. klaus

    klaus Expert Licensed 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.
    Giusy likes this.
  6. Marcus Araujo

    Marcus Araujo Member Licensed User

    Giusy likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice