Android ImageButton -- can't get image in the center
I'm a real moron. That's how it appears in the display the Ecliplse plugin provide side-by-side with the XML editor. When I actually build the project and ran it on a device, it displayed everything correctly.
Ironically I had exactly the opposite problem with an ImageView - I couldn't get it left-aligned no matter what I tried. In this case I was using layout_width="fill_parent"
.
See my question here: Android layout - alignment issue with ImageView
try use the Button and set the background it's very useful and easy :D
make the text empty and you can use it like image button ^_^