Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between image button and button

What is the difference between Button and ImageButton, where if we use any image in button's background its also work like image button. So why we use image button?

Thanks in advance :)

like image 478
MBMJ Avatar asked Jul 04 '12 03:07

MBMJ


Video Answer


1 Answers

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

ImageButton extends Image view, which has more methods relevant to the manipulation of images. http://developer.android.com/reference/android/widget/ImageView.html

like image 181
Aelexe Avatar answered Sep 28 '22 19:09

Aelexe