-
Notifications
You must be signed in to change notification settings - Fork 0
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
UI Tweaks #19
UI Tweaks #19
Conversation
ISNIT0
commented
Jan 14, 2025
- Hide bottom nav by default (so the shutter button is clickable)
- Implement orientation responsiveness, so landscape photos can be taken
viewModel.pauseRecording() | ||
Icon( | ||
imageVector = Icons.Filled.Pause, | ||
contentDescription = "Pause Recording", |
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.
Thought: Is it worth starting localisation early? To save work adding it in later. Not suggesting in this PR tho.
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.
Agree, there are a bunch of things, including colors and magic numbers that also need to be moved. I'll do some research into localisation techniques in Android
orientation in 330..360 || orientation in 0..30 -> 0 // Portrait | ||
orientation in 60..120 -> -90 // Landscape (Right) | ||
orientation in 150..210 -> 180 // Upside down | ||
orientation in 240..300 -> 90 // Landscape (Left) |
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.
How does this behave when the phone is held between 300 & 330? Are these boundaries added to stop the phone flipping between orientations when the phone is held at weird angles?
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.
Yes, stops it from flickering when close to the edge
WindowCompat.setDecorFitsSystemWindows(window, false) | ||
window.statusBarColor = android.graphics.Color.TRANSPARENT | ||
window.navigationBarColor = android.graphics.Color.TRANSPARENT | ||
|
||
// Hide bottom navigation bar by default |
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.
as i see most apps don't hide the nav buttons
need to ask people who still use this type of navigation
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.
True, let's come back to this in future - keen to get this branch closed
a50fc67
to
32597d1
Compare
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.
Lgtm
a2e1b6c
to
32597d1
Compare