Repository navigation
Give the media viewer Android chrome and video controls - #101
Merged
Merged
Conversation
Galleries and videos opened with their controls hidden, so share, draw and save only appeared after a tap. The bars sat in a grey box in one corner with the trash in the other, and videos had a thick Material slider on a dark strip that read as a settings control, not a player. The viewer now opens with its chrome shown, on soft top and bottom gradient scrims: a back arrow with a left-aligned title and detail, page dots for galleries (a count above nine pages), and the actions spaced evenly along the bottom with the trash among them. The system bars hide and come back with the chrome. Videos get a large centre play/pause on a soft shadow and a thin seek bar with a buffered segment; under the finger it thickens, the thumb grows, the time shows above it and ExoPlayer's scrubbing mode keeps frames following the drag. While playing, the chrome steps aside after 3 s and comes back when playback stops; it stays up under TalkBack, where the seek bar is a progress control. Gallery pages sit 16 dp apart. The pen still waits for a video to load, and the actions stay hidden on a file that didn't load. Documents and PDFs keep their top bar. MovieTransport is replaced. The open, close, drag, back and markup hand-off motion is unchanged. Checked on the emulator against dev, light and dark: opening and closing a transcript image and a video card, swiping a gallery, double-tap zoom, drag to dismiss, Back, video play, pause, drag-seek and auto-hide, drawing on an image and on a paused video frame with the slide into the composer (frame by frame the same as dev at 1x and 0.3x), 2x font scale, and the TalkBack labels. scripts/check.sh :feature:media passes; translations.py all is clean.
Merged
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The full-screen viewer opened galleries and videos with their controls hidden, its toolbar looked like a grey desktop panel, and videos had a thick settings-style slider. This gives it Android chrome and video controls. The motion (open, close, drag to dismiss, predictive back and the markup hand-off) is unchanged.
Chrome
Video
Gallery, dev (left) and this PR (right). The viewer is always dark, so light and dark look the same inside it:
A paused video, dev (left) and this PR (right):
Dev (left) and this PR (right): a gallery, then a video:
viewer-chrome-light.mp4
Checked on the emulator against dev, in light and dark: opening and closing a transcript image and a video card, swiping a gallery, double-tap zoom, drag to dismiss, Back, video play, pause, drag-seek and auto-hide, drawing on an image and on a paused video frame with the slide into the composer (frame by frame the same as dev at 1× and 0.3×), 2× font size, and the TalkBack labels.
scripts/check.sh :feature:mediapasses, andscripts/translations.py allis clean.