透明な ImageButton を作成する方法: Android 質問する

透明な ImageButton を作成する方法: Android 質問する
<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 に透明な行を含めるとすぐにプロジェクトでエラーが発生します。

助けてください。

ベストアンサー1

背景に null を使用してみてください...

android:background="@null"

おすすめ記事