在 Android 中将任何 View 置于 VideoView 之上
可以将任何视图放在 VideoView 上吗? (即将控制按钮放在视频上,就像在 vimeo 中一样)。我正在尝试使用 FrameLayout 来做到这一点,但我还没有找到方法,而且我仍然不确定我想做的事情是否根本不可能。
It is possible to put any view over a VideoView? (I.e. put the control buttons over the video, like in vimeo). I'm trying to do it using FrameLayout, but I have not found the way, and I'm still not sure if what I'm trying to do something that's is simply not possible.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我用 FrameLayout 做这种事情。您需要做的是确保控件位于布局编辑器中的 VideoView 下方。
I do this sort of thing with FrameLayout. What you need to do is make sure that the controls are below the VideoView in the Layout Editor.