You can declare where on the button you want to assign the image (Suppose you already have an image on the button):
<Button android:id="@+id/button" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="- I'm a Button -" android:drawableTop="@drawable/icon" />
you can also indent between text and image using android: drawablePadding (int)
The drawableTop attribute can be changed to drawableRight, Left, Bottom, etc. good luck!
Adam storm
source share