title: how to achieve transparency for an imagebutton in android
body: <p>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.</p>
  
  <pre><code>&lt;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" /&gt; 
  </code></pre>
  
  <p>Please help me.<br>
  Thanks in advance.</p>