Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Status bar is appearing in full screen mode #168

Closed
nmagko opened this issue Jan 31, 2021 · 2 comments
Closed

Status bar is appearing in full screen mode #168

nmagko opened this issue Jan 31, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@nmagko
Copy link

nmagko commented Jan 31, 2021

Hi there,

After android-sdk was updated to 2.2.0 with "androidjs u" full screen mode is showing the status bar.

Is there a new attribute in package.json to hide status bar?

"theme": {
    "fullScreen": true
}

Thanks
Victor C.

@Chhekur Chhekur added the bug Something isn't working label Mar 4, 2021
@MrMaxie
Copy link

MrMaxie commented Mar 27, 2021

Hello, im trying to use AndroidJS, but sadly this awesome library does not allow to fullscreen at current state, maybe because of that update which you mentioned, idk.

At trying to fix by myself without knowing much about Android itself and I found how to fix it. Try to find caches of android application used at building and find there such file, e.g in Windows i have it under such location: C:\Users\MY_USERNAME\.androidjs\cache\androidjs-sdk\res\values\styles.xml, edit this file (for keeping building process working well all the time, you can just write JS code for building and hotfix it always before such building using npm scripts e.g "build": "node my-hotfix.js && androidjs build"). Inside this file find node style[name="AppTheme"] and add inside such children:

<item name="android:windowFullscreen">true</item>

I hope it will work for you too! ❤

@nmagko
Copy link
Author

nmagko commented Oct 11, 2021

A simple workaround for this issue:

  • Clean ~/.androidjs folder.

  • Update androidjs to 2.2.4 and androidjs SDK to 2.0.4.

  • Add fullScreen and colorPrimaryDark attributes in package.json file. By setting colorPrimaryDark with same color as background worked for me.

    "theme": {
    "fullScreen": true,
    "colorPrimaryDark": "#000000"
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants