I had the same problem. A good way is to change the color using a theme. Use the ContextThemeWrapper app to apply the theme to your MediaController, for example:
private final class AudioMediaController extends MediaController { private AudioMediaController(Context context) { super(new ContextThemeWrapper(context, R.style.Theme_MusicPlayer)); } }
Your topic may look like this:
<resources> <style name="Theme_MusicPlayer"> <item name="android:textColor">#FFFFFF</item> </style> </resources>
save it as an XML file in the res / values ββfolder. The color of each text in the media controller (current time and end time) is now white.
source share