-
Notifications
You must be signed in to change notification settings - Fork 50
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
How to hide the action bar? #340
Comments
Here's how to hide the action bar based on the documentation of Turbo Android. In
In
|
@LeeGoTech Thanks for your reply. I'm a bit confused as to the package line. Should I be using line "package com.strategiccoach.winstreak" in the first file (which is in my MainActivity.kt)? When I do so, I'm getting an error "Unresolved reference: WebFragment" when I try to build based on this code. |
Please provide me a screenshot so I can assess the issue further. |
@LeeGoTech Sure, here is my code sample
|
I see the problem. There's no need to import the Let me know if there are still any problems related to hiding the action bar. |
@LeeGoTech So I did try removing this line as well, which does remove the action bar, but then I'm left with this giant space on my app so I put the line back in. Any ideas? |
It's easy to trigger said space, just by clicking into any input box and then clicking out of it. |
Refer to this issue: #215 |
@LeeGoTech This method does work to remove the space but it then prevents the screen from shifting up when clicking into the input that's lower in the page. Here's a demo (note: I'm trying to click into the second input down the page which makes the typepad cover it up). Previously, it would shift the whole page up: screen-20240821-100232.mp4 |
Use this in your
|
@LeeGoTech I tried this code block but no change unfortunately. |
I forgot something. Change |
I am attempting to hide the action bar (title bar) in my Turbo Native application in Android Studio but the usual way doesn't seem to be working.
I am using the call inside my MainActivity.kt:
supportActionBar?.hide()
Full code:
And I've also made sure the themes.xml has no action bar set like so:
But neither of these seem to work. Is something in Turbo setting the action bar?
The text was updated successfully, but these errors were encountered: