开发者

redraw MediaController controls

Is their a way to redraw the MediaContro开发者_JAVA百科ller 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).


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜