我是靠谱客的博主 微笑月饼,这篇文章主要介绍android屏幕底部黑块,Android surfaceView 黑块问题,现在分享给大家,希望可以做个参考。

很多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内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(86)

评论列表共有 0 条评论

立即
投稿
返回
顶部