Just add the bottom line to your buttons and specify the appropriate option that you want to use.
android:drawableBottom="@drawable/image"
Hope this helps.
EDIT: The above method works if you want to use your drawings, as it is, without resizing it. If you want you to change your capabilities, you can also do this with simple Java code written below:
((Button)findViewById(R.id.button)).setCompoundDrawables(null, null, null, getDrawable(getApplicationContext(), R.drawable.image, 25));
..... .....
Drawable getDrawable(Context context, int drawable, float form_factor) { Drawable imgDrawable = context.getResources().getDrawable(drawable); imgDrawable.setBounds(0, 0, (int)form_factor, (int)form_factor); return imgDrawable; }
Gagan source share