media/library
olly 2b0995635e 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-03-24 19:56:34 +00:00
..
all Add Transformer "Getting started" page 2021-02-03 15:03:16 +00:00
common Add positions and new reasons to onPositionDiscontinuity 2021-03-24 19:56:25 +00:00
core Add positions and new reasons to onPositionDiscontinuity 2021-03-24 19:56:25 +00:00
dash SampleStream/SampleQueue: Introduce read flags 2021-03-24 18:03:28 +00:00
extractor Add missing switch case 2021-03-24 18:07:25 +00:00
hls Avoid invalid extractors in DefaultHlsExtractorFactory 2021-03-24 18:04:17 +00:00
smoothstreaming Add common prefix to loader thread names 2021-02-11 12:05:06 +00:00
transformer SampleStream/SampleQueue: Introduce read flags 2021-03-24 18:03:28 +00:00
ui StyledPlayerControlView: Fix view measurement issue 2021-03-24 19:56:34 +00: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.