如何在android videoplayer上手动绘制圆形,矩形

如何在android videoplayer上手动绘制圆形,矩形,第1张

概述我只是想在 android中在视频播放器(同时视频播放)上手动绘制圆形,矩形或其他东西.是否可能?如果任何代码示例要好得多. 谢谢. 你的问题已经有了答案: See here 引自帖子: SurfaceView probably does not work like a regular View in this regard. Instead, do the following: Put your 我只是想在 android中在视频播放器(同时视频播放)上手动绘制圆形,矩形或其他东西.是否可能?如果任何代码示例要好得多.

谢谢.

解决方法 你的问题已经有了答案:

See here

引自帖子:

SurfaceVIEw probably does not work like a regular VIEw in this
regard.

Instead,do the following:

Put your SurfaceVIEw insIDe of a
FrameLayout or relativeLayout in
your layout XML file,since both of
those allow stacking of Widgets on
the Z-axis Move your drawing logic
into a separate custom VIEw class Add an instance of the custom VIEw
class to the layout XML file as a
child of the FrameLayout or
relativeLayout,but have it appear
after the SurfaceVIEw

This will cause your custom VIEw class to appear to float above the
SurfaceVIEw.

还有一个示例项目可满足您的需求

See here

总结

以上是内存溢出为你收集整理的如何在android videoplayer上手动绘制圆形,矩形全部内容,希望文章能够帮你解决如何在android videoplayer上手动绘制圆形,矩形所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1138180.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-30
下一篇 2022-05-30

发表评论

登录后才能评论

评论列表(0条)

保存