I try to arrange two buttons (with images on them which work fine) next to each other and to center them horizontally. That\'s what I have so far:
Use a Relatie Layout instead of Linear and set gravity as android:gravity="center".
Relative layouts give better performance and scale better if you run your application of devices of different sizes.
Following as an example XML and resulting UI: