Android和设置阿尔法(图)查看阿尔法 [英] Android and setting alpha for (image) view alpha
问题描述
难道真的没有XML属性对应于 setAlpha(INT)
?
Is there really no XML attribute counterpart to setAlpha(int)
?
如果不是,有什么替代品呢?
If not, what alternatives are there?
推荐答案
没有,没有,怎么看相关的XML属性部分的丢失的的<一个href="http://developer.android.com/reference/android/widget/ImageView.html#setAlpha%28int%29">ImageView.setAlpha(int)文档。另一种方法是使用<一个href="http://developer.android.com/reference/android/view/View.html#setAlpha%28float%29">View.setAlpha(float) /安卓:阿尔法代替。然而,只因为后者在可用的API级别11。
No, there is not, see how the "Related XML Attributes" section is missing in the ImageView.setAlpha(int) documentation. The alternative is to use View.setAlpha(float) / android:alpha instead. However, the latter in available only since API level 11.
这篇关于Android和设置阿尔法(图)查看阿尔法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!