Android VideoView.setAlpha 不起作用(Xoom 3.0)
目前我们正在开发一个 Android 项目,做一些增强现实的东西。对于这个项目,我们需要使 VideoView 中播放的视频透明。从 3.0 开始,VideoView 类应该有 setAlpha() 方法。但是,如果您通过此方法更改 alpha 值,视图不会发生任何变化。
也许也相关...... videoView 放置在 GlSurfaceView 的顶部,它本身放置在显示相机图片的 Surfaceview 上。
也许有人知道为什么 setAlpha 不起作用?
currently we're working on a project for Android, doing some Augmented Reality stuff. For this project we need to make a Video played in a VideoView transparent. Since 3.0 there should be the method setAlpha() for the VideoView class. But if you change the alpha value by this Method, nothing happens to the view.
Maybe also relevant...the videoView is placed on the top of a GlSurfaceView wich itself is placed over a Surfaceview showing the Camera picture.
Maybe someone got an idea why setAlpha is not working?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论