media/libraries/ui
jbibik d35bc176ff Allow customisation of various icons in PlayerControlView
Before this change:
The only way to customize the icons was to override the drawables, e.g.
* `exo_styled_controls_play`
* `exo_styled_controls_pause`

However, that would set the drawables globally and prevent users from customizing the icons **per** PlayerView.

After the change, it is possible to provide drawable icons in the xml layout directly via `<androidx.media3.ui.PlayerView>` and
* `app:play_icon="@drawable/...`
* `app:pause_icon="@drawable/...`
* `app:vr_icon="@drawable/...`
* `app:fullscreen_exit_icon="@drawable/...`
* `app:next_icon="@drawable/...`

Note:
Two buttons that are left out of this change are fast-forward and rewind. They are more complicated due to layout insertion and customization with seek back/forward increments in the TextView.

Issue: androidx/media#1200
PiperOrigin-RevId: 639832741
2024-06-03 10:32:39 -07:00
..
src Allow customisation of various icons in PlayerControlView 2024-06-03 10:32:39 -07:00
build.gradle Fix dependencies for UI module 2023-07-14 10:24:15 +01:00
lint-baseline.xml Fix lint-baseline.xml for latest UI translations 2023-03-02 17:21:16 +00:00
proguard-rules.txt Remove LegacyPlayerView reference from comment in proguard-rules.txt 2022-02-07 10:50:22 +00:00
README.md Replace or suppress deprecated usages 2024-01-26 10:06:18 -08:00

UI module

Provides UI components for media playback.

Getting the module

The easiest way to use the module is to add it as a gradle dependency:

implementation 'androidx.media3:media3-ui:1.X.X'

where 1.X.X is the version, which must match the version of the other media modules being used.

Alternatively, you can clone this GitHub project and depend on the module locally. Instructions for doing this can be found in the top level README.