You can specify a transparent background for the image button.
The result will be a clickable image that acts like a button but can look like whatever you want it to look like.
Just set android:background="@null"
for
the image button.
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical"> /* w w w. j a va 2 s. co m*/ <ImageButton android:id="@+id/image3" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@null" /> </LinearLayout>