baifaxiaoyao 2012-10-22 03:33 采纳率: 100%
浏览 4519
已采纳

在android中,怎么创建一个透明的ImageButton?

<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上。但是当我将透明线包含在xml中时,eclipse就在项目中给我报错。
请大家帮帮我

  • 写回答

3条回答 默认 最新

  • franzhong 2012-10-22 03:57
    关注
    android:background="@android:color/transparent"
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?