-
Notifications
You must be signed in to change notification settings - Fork 1
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
Fix: Edge to edge #91
base: master
Are you sure you want to change the base?
Conversation
Quality Gate passedIssues Measures |
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.
Having troubles using this version of Sentinel on another project. I will re-check it and get back to you.
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.
✅
Activity methods signatures were changed so I had to update them on the other project.
This solves a good portion of edge to edge problems but we will need to add additional updates later.
@@ -8,6 +8,7 @@ | |||
android:layout_width="match_parent" | |||
android:layout_height="wrap_content" | |||
android:background="?android:colorBackground" | |||
android:fitsSystemWindows="true" |
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.
Shouldn't fitsSystemWindows
go to root parent so it handles both top and bottom insets?
We are in no rush, so maybe we can handle everything here?
🤔 we can test it that way |
In Sentinel I double checked regarding We also need to figure out why toolbar is changing color, I don't think this was intended, but looks ok for now. Same steps can be applied to sample app as well. |
Summary
Fix for issue #86
Now Sentinel's UI should be ok on API 35 devices in regards to edge to edge
Changes
android:fitsSystemWindows="true"
Type
Additional information
Description
As mentioned I focused on most intrusive part of issue (you can't see/click on top bar).
There might be room to improve things even further: sample app edge to edge support? bottom padding support? and bottom sheet is now floating a bit weirdly.
If you have suggestions how to improve things, feel free to mention them
Checklist
Additional notes
Before:
After:
after.webm