I had need to hide some screen manipulation including a keyboard showing, and came across some code on StackOverflow to add a panel directly to the window manager, which did the trick.
Here are two examples, and as I needed to run this at boot up, I've added the option to put a splash panel on top of it.
The panel passes through clicks, so if you are hiding buttons and edittexts, you will still need to cover them with a panel that has click and long click subs to consume the events.
The code I based it on can be found here:
http://stackoverflow.com/questions/...-lock-screen-turn-on-with-t/16034100#16034100
There are more options for animation if you search the Android developers site, and of course background colors.
An additional permission is required: Edit the manifest in the IDE and add:
Here are two examples, and as I needed to run this at boot up, I've added the option to put a splash panel on top of it.
The panel passes through clicks, so if you are hiding buttons and edittexts, you will still need to cover them with a panel that has click and long click subs to consume the events.
The code I based it on can be found here:
http://stackoverflow.com/questions/...-lock-screen-turn-on-with-t/16034100#16034100
There are more options for animation if you search the Android developers site, and of course background colors.
An additional permission is required: Edit the manifest in the IDE and add:
B4X:
AddPermission("android.permission.SYSTEM_ALERT_WINDOW")
Attachments
Last edited: