-
Notifications
You must be signed in to change notification settings - Fork 17
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
feat: Auto-hide Image Viewer toolbar #507
Conversation
I wanted to also cancel the auto-hide behavior in case the toolbar is interacted with. I have those changes here, but I couldn't find a way to listen to opening the overflow menu, so I refrained from adding those changes to this PR: tinsukE#1 |
Thanks for the PR. Left some general comments above.
If you make the Fragment class extend from requireActivity().addMenuProvider(this, viewLifecycleOwner, Lifecycle.State.RESUMED) then |
When viewing an Image, it is not straightforward to understand that tapping on it will hide the toolbar and alt sheet, and those elements might get in the way of them viewing the full image. Automatically hiding the toolbar and alt sheet after some short time might help the user two ways: 1. Get out of their way when they're viewing an image with an aspect ratio so that those elements are on top of it. 2. Showing them that those elements are hide-able, which might nudge into tapping to restore them and, consequently, learn about the "tap to hide/show" feature.
6177c46
to
8d70cf0
Compare
@nikclayton I have updated the PR according to the discussions. |
@nikclayton Thanks for the tip! I found that Let me know if If you'd prefer to leave that change as a second PR for when this is merged, or if I should batch them together. |
I'll get this merged (so it can go out in the next Pachli Current) and if you can do the followup in a new PR that'd be great. Thanks for the PR! |
Cancel the auto-hide behavior in case the toolbar menu items are interacted with. Improves #505, #507 --------- Co-authored-by: Nik Clayton <[email protected]>
When viewing an Image, it is not straightforward to understand that tapping on it will hide the toolbar and alt sheet, and those elements might get in the way of them viewing the full image.
Automatically hiding the toolbar and alt sheet after some short time might help the user two ways:
Interacting with the alt sheet cancels the auto-hide.
Fixes #505