The difference between the image button and the button

What is the difference between Buttonand ImageButton, where, if we use any image in the background of a button, it also works like an image button. So why do we use the image button?

Thanks in advance:)

+5
source share
1 answer

The button extends TextView, allowing you to create interactive text with a background image. http://developer.android.com/reference/android/widget/TextView.html

ImageButton extends the look of the image, which has more methods related to image manipulation. http://developer.android.com/reference/android/widget/ImageView.html

+9
source

All Articles