-
-
Notifications
You must be signed in to change notification settings - Fork 681
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
Make the navigation bar and status bar transparent (edge-to-edge) #4547
Comments
Unfortunately this isn't as easy as you might think because of the WebView. Last time I tried the problem was that information about insets wasn't set correctly on the WebView, making it impossible for the frontend to adapt. That means content will end up behind the system navigation, which is especially problematic when using button navigation or when you have a tall status bar due to a camera/cutout. It looks like the bug is still unresolved: https://issuetracker.google.com/issues/40699457. (I thought we already had an issue for this, but can't find it.) |
Ah well that sucks, it would have been neat. Let's hope Google does something about it. |
This looks a bit hacked together to me but considering how the WebView still doesn't do inset support correctly (it now kinda works on first load, but breaks after navigation) if the frontend team is OK, I think we can consider it as well. Not as easy as you might think however because HA/frontend version is decoupled from the app and users might have multiple servers on different HA versions. |
Is your feature request related to a problem? Please describe.
Both the navigation bar and the status bar are solid colors and do not allow for other elements to go under them, making the application feel less polished.
Describe the solution you'd like
Making the application display edge-to-edge content, as described here: https://developer.android.com/develop/ui/views/layout/edge-to-edge
Describe alternatives you've considered, if any
Not applicable.
Additional context![Screenshot_20240801-192313.png](https://private-user-images.githubusercontent.com/98901170/354411909-f4ee947f-b791-4ec5-aa55-93fff3647a70.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzODUxMzYsIm5iZiI6MTczOTM4NDgzNiwicGF0aCI6Ii85ODkwMTE3MC8zNTQ0MTE5MDktZjRlZTk0N2YtYjc5MS00ZWM1LWFhNTUtOTNmZmYzNjQ3YTcwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDE4MjcxNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTljMjljNzhjZTIzMTNlN2EwZmEzZWE5MDk0NzFjYzNjMmY2Yzk1MmNiMGQ2ZmNhMGE1ZDliNTg0NDZiZmY0YmUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.elpKVfJMaIqDQCjYqtMYi4qrsLDyQJ3l3yQicz51RN4)
Example of an app handling edge-to-edge incorrectly (notice how the side menu goes under the navigation bar and the status bar):
Example of an app handling edge-to-edge correctly (notice how the side menu goes under both the navigation bar and the status bar, since they are truly transparent):![Screenshot_20240801-192429.png](https://private-user-images.githubusercontent.com/98901170/354411951-06c1293a-9cef-4d57-9a28-a3d64fa6e666.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzODUxMzYsIm5iZiI6MTczOTM4NDgzNiwicGF0aCI6Ii85ODkwMTE3MC8zNTQ0MTE5NTEtMDZjMTI5M2EtOWNlZi00ZDU3LTlhMjgtYTNkNjRmYTZlNjY2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDE4MjcxNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQzM2QwMmU5Yzk4NTZmYjUxMmJhNjVkOTk5MWVjNTNmODNmMzUzODQzYWNlYTJjYzYyMTcwMTg0OTU3YTRjNzImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.OfrN6CxmrBPEjv61qs4mwpKrgsJ3KP6WzzrGWOI0iLA)
The text was updated successfully, but these errors were encountered: