本文介绍了setAlpha的编程观点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在Android文档看到有一个setAlpha API级别1.I有一个观点,我尝试在视图中使用setAlpha(浮点),但是编译器说,没有这样的方法。我缺少的东西吗?
I saw in the Android documents there is a setAlpha API Level 1.I have a View that I try to use setAlpha(float) on the view, but the compiler says no such method exists. Am I missing something?
推荐答案
据我所看到的,的)只从API级别支持11(不是1)。
As far as I can see, http://developer.android.com/reference/android/view/View.html#setAlpha(float) is only supported from API level 11 (not 1).
如果你想利用这一点,你必须添加到您的清单类似
If you want to use this, you'll have to add to your Manifest something like
<采用-SDK安卓的minSdkVersion =11/>
这篇关于setAlpha的编程观点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!