不工作半透明TextureViews [英] Semi-Transparent TextureViews not working

查看:654
本文介绍了不工作半透明TextureViews的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不能更改setAlpha方法TextureView的透明度,马斯克是半透明的,因为它是由Android SDK中的承诺。例如mTextureView.setAlpha(0.5F)
没有任何效果。

I cannot change the transparency of a TextureView by setAlpha method to maske it semi-transparent as it is promised by the android SDK. For example mTextureView.setAlpha(0.5f) does not have any effect.

推荐答案

我曾经做到这一点的解决方案是包裹TextureView像RelativeLayout的另一个部件,改变母的透明度。

The solution I used to make it happen was to wrap the TextureView in another widget like RelativeLayout and change the transparency of the parent.

这篇关于不工作半透明TextureViews的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆