我正在尝试设置视图的透明度。
我在这里阅读文档: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>
我收到一个错误提示:
在“android”包中找不到属性“alpha”的资源标识符
如何设置视图的透明度?