Reputation: 11198
Is their a way to redraw the MediaController controls when rotating the device? I am already overriding the onConfigurationChanged() method. I just don't know of the method to redraw the controls.
The reason for me wanting to do this is when I rotate, the controls dont resize to the screen width until they disappear and come back (tap the video again).
Upvotes: 3
Views: 1180
Reputation: 134714
What I would try (having no experience with MediaController, admittedly) is 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 might just be able to call mController.show()
and it redraw it.
Upvotes: 1