P A Gosai
P A Gosai

Reputation: 591

Change action icon of playerNotificationManager like play/pause/stop

I want to change action icon color of PlayerNotificationManager of ExoPlayer. can somebody help me to change this icon?

enter image description here

Upvotes: 2

Views: 1767

Answers (1)

Prashant Arvind
Prashant Arvind

Reputation: 2347

You can override the icons used by PlayerNotificationManager by redefining the resources in your app's resources. Notification icons are defined in the UI module here, so (for example) you can add a drawables.xml in your app that overrides one of these:

<?xml version="1.0" encoding="utf-8"?>
<resources>
  <drawable name="exo_notification_pause">@drawable/my_pause_icon</drawable>
</resources>

This issue asked on ExoPlayer github

Refer to this link

Upvotes: 3

Related Questions