Image

<

Button android:id ="@+id/Image_Button"


   

android:layout_width="wrap_content" 


   

android:layout_height="wrap_content"   


   

android:drawableTop="@drawable/ic_launcher"


   

android:drawablePadding="-40px"


   

android:text="OK"


   

/>

 

One lightweight way of doing this is to use a Button with

android:drawableTop and android:drawablePadding, which will put both
the text and image inside the button. There are separate attributes
for setting
drawables for each "side" of the text.
原文地址:https://www.cnblogs.com/Jessy/p/2356223.html