Redraw MediaController Controls

Is their way to redraw the MediaController controls while the device is spinning? I already override the onConfigurationChanged () method. I just don’t know a way to redraw the controls.

The reason I want to do this is when I rotate the controls do not resize the screen until they disappear and return (tap the video again).

+3
source share
1 answer

I would try (having no experience with MediaController, admittedly), something like this:

MediaController mController = (MediaController)findViewById(R.id.mController);
mController.invalidate();
//next line may not be necessary
mController.show(some integer value here);

You can just call mController.show()and redraw it.

+1
source

All Articles