谢谢.
解决方法 你的问题已经有了答案:See here
引自帖子:
SurfaceVIEw
probably does not work like a regularVIEw
in this
regard.Instead,do the following:
Put yourSurfaceVIEw
insIDe of a
FrameLayout
orrelativeLayout
in
your layout XML file,since both of
those allow stacking of Widgets on
the Z-axis Move your drawing logic
into a separate customVIEw
class Add an instance of the custom VIEw
class to the layout XML file as a
child of theFrameLayout
or
relativeLayout
,but have it appear
after theSurfaceVIEw
This will cause your custom
VIEw
class to appear to float above the
SurfaceVIEw
.
还有一个示例项目可满足您的需求
See here
总结以上是内存溢出为你收集整理的如何在android videoplayer上手动绘制圆形,矩形全部内容,希望文章能够帮你解决如何在android videoplayer上手动绘制圆形,矩形所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)