Thursday, December 5, 2013

ImageButton Background


When making an ImageButton, android seems to want to give you a background. To show only your image, and not the background, open up that XML layout and put your image in the src tag:

android:src="@drawable/YOURIMAGE"

and then, for the background, toss it a null:

android:background="@null"

And that should do it. So simple. Don't forget the monkeytail in front of the null!

No comments:

Post a Comment