B4A Library WindowSetLib

v1.2
add a new features:disable the home key(haven't test on android4.x)

with this you can set full screen at any time!:D
:D
B4X:
'Activity module
Sub Process_Globals
   'These global variables will be declared once when the application starts.
   'These variables can be accessed from all modules.

End Sub

Sub Globals
   'These global variables will be redeclared each time the activity is created.
   'These variables can only be accessed from this module.
   Dim ws As WindowSet
   Dim Btnfullscreen As Button
   Dim flagfullscreen As Boolean
End Sub

Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("1")
End Sub

Sub Activity_Resume

End Sub

Sub Activity_Pause (UserClosed As Boolean)

End Sub




Sub Btnfullscreen_Click
   flagfullscreen=Not(flagfullscreen)
   ws.SetFullScreen(flagfullscreen)
End Sub
 

Attachments

  • windowsetlib&demo.zip
    3.7 KB · Views: 607
  • windowsetlibv1.2.zip
    2 KB · Views: 594
Last edited:
Top