Hi is there a way of changing the colour of the text in a mediacontroller showing the total time and remaining time of an audio file. On android 2.3 the times are clearly visible but when my app is run on android 4.0 or 4.1 the text showing the times either side of the progress bar are too dark. Currently I am extending the mediacontroller class to create my own media controller that does not dissapear, is there something I could add to this class perhaps? Any help would be much appreciated.
public class WillMediaController extends MediaController {
public WillMediaController(Context context) {
super(context);
}
@Override
public void hide() {
// Do Nothing to show the controller all times
}
@Override
public boolean dispatchKeyEvent(KeyEvent event)
{
if (event.getKeyCode() == KeyEvent.KEYCODE_BACK)
{
((Activity) getContext()).finish();
}else{
super.dispatchKeyEvent(event);
}
if (event.getKeyCode() == KeyEvent.KEYCODE_VOLUME_DOWN ||
event.getKeyCode() == KeyEvent.KEYCODE_VOLUME_UP) {
// don't show the controls for volume adjustment
return super.dispatchKeyEvent(event);
}
return true;
}
}
Thanks