很多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内容请搜索靠谱客的其他文章。
发表评论 取消回复