Commit b68d19bc by olly Committed by bachinger

Add layer of indirection for drawables

This allows easy overriding of the resources by app developers

Issue: #6709
PiperOrigin-RevId: 283306121
parent 3065d513
Showing with 13 additions and 1 deletions
...@@ -102,6 +102,9 @@ ...@@ -102,6 +102,9 @@
* Make showing and hiding player controls accessible to TalkBack in * Make showing and hiding player controls accessible to TalkBack in
`PlayerView`. `PlayerView`.
* Rename `spherical_view` surface type to `spherical_gl_surface_view`. * Rename `spherical_view` surface type to `spherical_gl_surface_view`.
* Make it easier to override the shuffle, repeat, fullscreen, VR and small
notification icon assets
([#6709](https://github.com/google/ExoPlayer/issues/6709)).
* Analytics: * Analytics:
* Remove `AnalyticsCollector.Factory`. Instances should be created directly, * Remove `AnalyticsCollector.Factory`. Instances should be created directly,
and the `Player` should be set by calling `AnalyticsCollector.setPlayer`. and the `Player` should be set by calling `AnalyticsCollector.setPlayer`.
......
...@@ -20,6 +20,14 @@ ...@@ -20,6 +20,14 @@
<drawable name="exo_controls_previous">@drawable/exo_icon_previous</drawable> <drawable name="exo_controls_previous">@drawable/exo_icon_previous</drawable>
<drawable name="exo_controls_fastforward">@drawable/exo_icon_fastforward</drawable> <drawable name="exo_controls_fastforward">@drawable/exo_icon_fastforward</drawable>
<drawable name="exo_controls_rewind">@drawable/exo_icon_rewind</drawable> <drawable name="exo_controls_rewind">@drawable/exo_icon_rewind</drawable>
<drawable name="exo_controls_repeat_all">@drawable/exo_icon_repeat_all</drawable>
<drawable name="exo_controls_repeat_off">@drawable/exo_icon_repeat_off</drawable>
<drawable name="exo_controls_repeat_one">@drawable/exo_icon_repeat_one</drawable>
<drawable name="exo_controls_shuffle_off">@drawable/exo_icon_shuffle_off</drawable>
<drawable name="exo_controls_shuffle_on">@drawable/exo_icon_shuffle_on</drawable>
<drawable name="exo_controls_fullscreen_enter">@drawable/exo_icon_fullscreen_enter</drawable>
<drawable name="exo_controls_fullscreen_exit">@drawable/exo_icon_fullscreen_exit</drawable>
<drawable name="exo_controls_vr">@drawable/exo_icon_vr</drawable>
<drawable name="exo_notification_play">@drawable/exo_icon_play</drawable> <drawable name="exo_notification_play">@drawable/exo_icon_play</drawable>
<drawable name="exo_notification_pause">@drawable/exo_icon_pause</drawable> <drawable name="exo_notification_pause">@drawable/exo_icon_pause</drawable>
<drawable name="exo_notification_next">@drawable/exo_icon_next</drawable> <drawable name="exo_notification_next">@drawable/exo_icon_next</drawable>
...@@ -27,4 +35,5 @@ ...@@ -27,4 +35,5 @@
<drawable name="exo_notification_fastforward">@drawable/exo_icon_fastforward</drawable> <drawable name="exo_notification_fastforward">@drawable/exo_icon_fastforward</drawable>
<drawable name="exo_notification_rewind">@drawable/exo_icon_rewind</drawable> <drawable name="exo_notification_rewind">@drawable/exo_icon_rewind</drawable>
<drawable name="exo_notification_stop">@drawable/exo_icon_stop</drawable> <drawable name="exo_notification_stop">@drawable/exo_icon_stop</drawable>
<drawable name="exo_notification_small_icon">@drawable/exo_icon_circular_play</drawable>
</resources> </resources>
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
</style> </style>
<style name="ExoMediaButton.VR"> <style name="ExoMediaButton.VR">
<item name="android:src">@drawable/exo_icon_vr</item> <item name="android:src">@drawable/exo_controls_vr</item>
<item name="android:contentDescription">@string/exo_controls_vr_description</item> <item name="android:contentDescription">@string/exo_controls_vr_description</item>
</style> </style>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment