<ImageButton android:id="@+id/previous"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/media_skip_backward"
android:background="@drawable/transparent"></ImageButton>
这就是我试图获得一个透明的 ImageButton 以便将这些按钮放在 SurfaceView 上的原因。但是 Eclipse,只要我在 xml 中包含透明行,就会在项目中给我一个错误。
请帮忙。
最佳答案
尝试使用 null 作为背景...
android:background="@null"
关于android - 如何有一个透明的 ImageButton : Android,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3402787/