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!
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: 609
  • windowsetlibv1.2.zip
    2 KB · Views: 597
Last edited:

NJDude

Expert
Licensed User
Longtime User
Just to let you know that it works just on certain devices, and it doesn't really go "full screen" if you have a window title, it will remain, this has been discussed before HERE
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…