Android Question Full screen by code

stevenindon

Active Member
Licensed User
Hello all,

I would like to know how can i change my app to full screen by code?

I understand that we can do that in :
#Region Activity Attributes
#FullScreen: true
#IncludeTitle: false
#End Region

But in my case is a little different. I wanted to change to fullscreen=true/false when user click on a button. Please help
 
Last edited:

Sagenut

Expert
Licensed User
Longtime User
I don't understand this necessity, but maybe explaining for what it's needed can lead someone to propose even some alternate solution if this thing cannot be achieved by code.
 
Upvote 0

stevenindon

Active Member
Licensed User
Sagenut, My application starts with a webview and a html page. Within webview, I have a javascript to execute the app - to set for full screen / not full screen during runtime. This enable the application change its 'look' depending on the javascript command.
 
Upvote 0

Sagenut

Expert
Licensed User
Longtime User
Flying idea..... Check this
Immersive Mode
Maybe it's possible even to disable it by code.
But I never thought about this.
 
Upvote 0

Sagenut

Expert
Licensed User
Longtime User
Probably not the best implementation.
But it could be a starting point.
 

Attachments

  • FullScreen_by_Code.zip
    15.4 KB · Views: 121
Upvote 0
Top