概述
很多Android机上会出现surfaceView结束播放后,出现概率的黑块,典型的解决方案
setZOrderMediaOverlay(false);
setZorderTop(false);
/**
* Control whether the surface view's surface is placed on top of another
* regular surface view in the window (but still behind the window itself).
* This is typically used to place overlays on top of an underlying media
* surface view.
*
*
Note that this must be set before the surface view's containing
* window is attached to the window manager.
*
*
Calling this overrides any previous call to {@link #setZOrderOnTop}.
*/
public void setZOrderMediaOverlay(boolean isMediaOverlay) {
mWindowType = isMediaOverlay
? WindowManager.LayoutParams.TYPE_APPLICATION_MEDIA_OVERLAY
: WindowManager.LayoutParams.TYPE_APPLICATION_MEDIA;
}
/**</
最后
以上就是微笑月饼为你收集整理的android屏幕底部黑块,Android surfaceView 黑块问题的全部内容,希望文章能够帮你解决android屏幕底部黑块,Android surfaceView 黑块问题所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复