我想设置视图的Alpha级别。 我在这里阅读文档:在视图上设置Alpha级别不起作用
http://developer.android.com/reference/android/widget/RelativeLayout.html
,它好像它应该是可能的,即使在Android 2.1,我正在开发(如我不能看到它,否则说),但是当我把它添加到我的看法
<View
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_margin="20sp"
android:background="#ffffff"
android:alpha="0.9"></View>
我得到一个错误说:
没有在包装发现属性“阿尔法”资源标识符10'android'
如何设置视图的alpha级别?
好吧,这很奇怪,你正在按照文档所述的那样做。你可以尝试使用0到255之间的整数值,所以没有小数? [资源文档](http://android.ubiwireless.com/Documentation.doc) – nldev