Skip to content Skip to sidebar Skip to footer

Android 10 Mediastyle Notification Seek Bar Is Black

The MediaStyle Notification introduced in Android 10 works but is however black and doesn't display duration either. Here is a link to the code: https://github.com/ryanheise/audio

Solution 1:

I followed the hints reported in this bug report and I solved the problem. I successfully tested it on Samsung and Huawei devices with Android 10.

The trick is:

As per Google's Material Design guidelines, the small icon in the notification should be monochrome white, and have a transparent background. If you follow those guidelines, the slider displays correctly.

Some people report also that you have to set a non transparent color (like Color.BLACK) using setColor() method to make it work on some devices.

Post a Comment for "Android 10 Mediastyle Notification Seek Bar Is Black"