media/library
olly ffb1f61ef7 StyledPlayerControlView: Fix view measurement issue
The exo_controls_background view is supposed to fill its parent,
and so previously used match_parent to do this. However, if the
parent uses wrap_content for its own dimensions, the constraints
being specified become somewhat ambiguous. The parent is supposed
to be sizing itself to wrap its children, and one of the children
is supposed to be sizing itself to match the parent.

Intuitively for this case, you'd hope that the layout logic would
size the parent to wrap its other children, and that the
match_parent child would then fill the parent with its determined
size. That's not what happens, and instead the parent ends up
expanding to occupy all of the space available to it.

This commit sets the exo_controls_background view's dimensions
to be 0dp in the layout, to stop it from influencing the size of
the parent. It's then expanded to fill the parent in code.

Issue: #8726
#minor-release
PiperOrigin-RevId: 364868301
2021-04-09 17:26:35 +01:00
..
all Add Transformer "Getting started" page 2021-02-04 00:31:46 +00:00
common HLS: Allow audio variants to initialize the timestamp adjuster 2021-04-09 16:59:46 +01:00
core Treat Dolby Vision as H264 in MCVR#getCodecMaxInputSize() 2021-04-09 17:11:03 +01:00
dash Fix available end time calculation for multi-period DASH live streams 2021-02-12 17:19:37 +00:00
extractor Add missing switch case 2021-04-09 17:08:39 +01:00
hls Avoid invalid extractors in DefaultHlsExtractorFactory 2021-04-09 17:04:08 +01:00
smoothstreaming Split mutations method out of TrackSelection 2021-01-25 15:37:38 +00:00
transformer Transformer: remove SpeedProvider interface from Javadoc 2021-02-12 17:15:58 +00:00
ui StyledPlayerControlView: Fix view measurement issue 2021-04-09 17:26:35 +01:00
README.md Tweak and add READMEs + remove refs to V1 2017-08-17 22:59:34 +01:00

ExoPlayer library

The ExoPlayer library is split into multiple modules. See ExoPlayer's top level README for more information about the available library modules and how to use them.