-
-
Notifications
You must be signed in to change notification settings - Fork 90
Fixed paddings on horizontal mode #1353
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
Fixed paddings on horizontal mode #1353
Conversation
I really think that those are simply Android bugs, but we should fix them, at least until Google does something. Edge-to-edge is really buggy and strange, and for some reason they are enforcing it |
What makes you think that? In the docs they say we got to handle it manually ourselves. https://developer.android.com/develop/ui/compose/system/cutouts#handle-cutout So I don't think google considers it an android bug ... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess it get's even more complicated on Tablets and split-window mode. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've now manually configured each activity that required it. I've checked all of them and seem to be fine. I've also added that when opening the side menu on light mode, the title changes the text color to a lighter one, because otherwise it wasn't visible enough imo. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I really hope we don't need to add that much code. Can't we turn off edge-to-edge in landscape mode and leave some unused extra whitespace left and right?
Maybe we can schedule a call with the three of us where Arnau explains the situation to us?
As discussed in the meeting, we'll use We'll think about re-implementing edge-to-edge in the future, maybe after #1211, and after completely migrating to Compose Navigation. |
Turns out ime padding was not even necessary, it's already consumed on the theme |
Signed-off-by: Arnau Mora <[email protected]>
Signed-off-by: Arnau Mora <[email protected]>
Signed-off-by: Arnau Mora <[email protected]>
Signed-off-by: Arnau Mora <[email protected]>
2eaa83c
to
e0a490d
Compare
Can confirm, probably because of the |
Signed-off-by: Arnau Mora <[email protected]>
Okay, it should be good now. I've tried every orientation, in both phones and tablets, on API 34 and 35. The only limitation is that API 34 doesn't detect camera cutouts for some reason. But I think we can't do much about it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd say we remove the edge-to-edge from the Accounts drawer as well? So that it's only active for the IntroScreen |
I have removed edge-to-edge from AccountsScreen and navigation drawer also. Would you like to have a quick check? Otherwise I'd merge it and we can "happily" continue to play around with it later 😄 |
Looks good |
still looks broken here |
Could you provide a PR? Otherwide I'd leave it for now. We don't have resources for that and I don't get it despite investing hours and hours |
Purpose
Horizontal mode's paddings are not correct, causing some parts of the UI to be overlaid by the system UI. See #1346 for examples.
Short description
Landscape mode accounts screen
Sidebar fix
Further information
https://developer.android.com/codelabs/edge-to-edge#4
Checklist