Hi am confused with image button options in android. I have created three image buttons with the following xml
<ImageButton
android:id="@+id/imageButton1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:src="@drawable/folder_add" />
<ImageButton
android:id="@+id/imageButton4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignTop="@+id/imageButton1"
android:layout_toLeftOf="@+id/imageButton1"
android:src="@drawable/search" />
<ImageButton
android:id="@+id/imageButton2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignTop="@+id/imageButton4"
android:layout_toLeftOf="@+id/imageButton4"
android:src="@drawable/advancedsettings"
style="?android:attr/borderlessButtonStyle" />
But the out is like button with image on its ..
Please help me to show the image only as button..Thnx in advance!
Put this tag in your
ImageButtonThis will do it.