-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
[UI] Make the login screen and bottom navigation view more tablet friendly. #20957
base: trunk
Are you sure you want to change the base?
Conversation
Additionally also fixed an issue where the app would not poperly layout in tablet landscape mode. This occurred due to the portrait limitation on the login activity.
Generated by 馃毇 Danger |
|
App Name | ![]() |
|
Flavor | Jalapeno | |
Build Type | Debug | |
Version | pr20957-d1ed133 | |
Commit | d1ed133 | |
Direct Download | jetpack-prototype-build-pr20957-d1ed133.apk |
|
App Name | ![]() |
|
Flavor | Jalapeno | |
Build Type | Debug | |
Version | pr20957-d1ed133 | |
Commit | d1ed133 | |
Direct Download | wordpress-prototype-build-pr20957-d1ed133.apk |
Something to note. I added padding to the navigation rail. It's 0dp for the bottom nav. So no change. This is per the material spec: ![]() Unfortunately there is no guidance around how to handle that. We could deviate from the spec to increase the width. But if a users font is larger, it wouldn't matter too much. I think for now it's fine. But something to think about. I also improved the logo spacing in landscape. ![]() We can further improve this by laying out the UI slightly different in landscape. But didn't want to make too many edits. |
Just a heads up. Had to make a larger theme change due to a lint issue for potential overdraw. For some reason the |
|
This PR attempts to make the bottom navbar "adaptive" so when on larger screens it puts the navbar on the left side instead. While using my foldable I noticed we could be utilizing the space better.
Unfortunately we are not using Jetpack Compose with the bottom navbar, so properly doing adaptive navigation is tricky. Especially since it's a custom view. So I utilized two different techniques to make it work.
First, I used the xml file qualifiers that automatically choose layouts for certain screen sizes. This allowed me to move the navigation view to the right spots.
Second, the
BottomNavigationView
and theNavigationRailView
extend from the same parent. Meaning I was able to just reference the parent class. All the related components have similar inheritance structures.The downside is
main_activity.xml
is duplicated in order to make the adaptive part work. But overall surprised it wasn't worse.Additionally on the login screen I noticed weird spacing on the login button. So I fixed that.
Lastly, while testing an actual tablet emulator I noticed that the login screen is actually centered and does not utilize the full screen space in landscape. The experience is pretty poor. So I fixed that too. Sorta.
To Test:
Login
Adaptive Navigation
Smoke Testing
Known Issues
Please note I realize that the tablet login screen looks off due to the spacing of the vertical scrolling letters. That screen probably needs additional love. Just want to gather some feedback.Regression Notes
Potential unintended areas of impact
The existing bottom navbar..
What I did to test those areas of impact (or what existing automated tests I relied on)
Manual testing.
What automated tests I added (or what prevented me from doing so)
N/A
PR Submission Checklist:
RELEASE-NOTES.txt
if necessary.