据我所知,http://developer.android.com/reference/android/view/View.html#setAlpha(float)仅支持API级别11及以上(不支持1)。如果您想使用它,您需要在Manifest中添加以下内容: <uses-sdk android:minSdkVersion="11"/> 请注意,这是最小的支持版本。