android - 如何有一个透明的 ImageButton : Android

标签 android transparent imagebutton surfaceview

<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/

相关文章:

Android - ImageButton onClick 在 ICS 和 JB 中工作,但在 GB 中不工作

android - "fatal error: Eigen/Dense: No such file or directory"//特征库

Android textview over imageview 背景透明

Android imageView 的海拔被 TextView 遮挡

android - 如何在Android中播放透明视频?

android - 在 Canvas 上绘制透明形状

c# - 在 ASP.net 中创建嵌入式图像按钮?

android - 如何一次播放一种声音?

android - 将新的 Android 项目添加到 fork 的 repo

Android:市场设计哲学?