You can use android: background = "" to set the color of ImageButton and some Android widgets. ('#rrggbb' or '@ android.color / blue', '@android: color / transparent'). you can follow this example as a reference.
<ImageButton android:id="@+id/btnGreen" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@android:color/transparent" android:src="@drawable/my_image.png"/>
source share