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

chnge statusBar color #24

Open
unity-seargent opened this issue Feb 19, 2021 · 2 comments
Open

chnge statusBar color #24

unity-seargent opened this issue Feb 19, 2021 · 2 comments

Comments

@unity-seargent
Copy link

unity-seargent commented Feb 19, 2021

hi, how can i change statusBar color? its Necessary

@Over17
Copy link
Owner

Over17 commented Feb 22, 2021

Hi!

https://stackoverflow.com/questions/22192291/how-to-change-the-status-bar-color-in-android

In https://github.com/Over17/UnityShowAndroidStatusBar/blob/master/src/UnityShowAndroidStatusBar/src/main/res/values-v21/styles.xml, under UnityStatusBarTheme,
add this:

<item name="colorPrimaryDark">@color/yourcolor</item>

Then rebuild and replace the AAR in the Unity project.

Haven't tried it myself but I see no reason why it shouldn't work (on API21+)

@KornyAS
Copy link

KornyAS commented Jul 19, 2022

Hey, this is not working, I tried many things but none is working.
image
Here is my values-v21.xml
Please help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants