I have an ImageButton and I'd like to remove the ugly (IMHO) background that surrounds the Image. I could just add an ImageView, but they're very hard to get set perfectly in a Layout like the grey one pictured. [gravity "Center" doesn't make it go to the middle, just centers it Vertically.)
So any way to remove that?
(#0000 same with #00000000)
ImageButton imageButton = new ImageButton(this); imageButton.setBackgroundDrawable(null);