I want the imagebutton to appear transparently on the screen so i have made android:background="@null" in the XML file so it has removed the gray border around the imagebutton.It solved my problem but when i click on the imagebutton it is not showing any background color. But i need some background color to appear on click. So I have added android:padding="3dp". It has removed the border on the sides but not on the top.
<ImageButton
android:id="@+id/btnphoto"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/photo"
android:layout_x="4px"
android:layout_y="370px"
android:padding="3dp" />
Please help me.
Thanks in advance.