Android image button default background

How to Set ImageButton background transparent in android XML. So in this tutorial we are dynamically Creating ImageButton with transparent background in android programmatically. The images will be created in form of nine-patch bitmaps so that they can be stretched to fit buttons of various sizes. It is advisable to name the file indicating the state of the button.
Android image button default background
Adventurer and photographer Amos Chapple recently visited the village, as well as Yaktusk, its nearest city center. Its easy to design buttons through XML codes and can be used same code for multiple project with slight modification. Does it calls a button on its event. Philippines bank logos found at logos.

Set background property of ImageButton instead of src.

Android image button default background — pic 2
Download below sample image and copy inside drawable-hdpi folder. The most easy way to have a transparent background is to use the null value for the background. I Imported one image inside the drawable-mdpi, then implemented the image from button, but an error occurs no resource found here.