0

When a background can be set on a Button then what is the use of an ImageButton?

prometheuspk
  • 3,754
  • 11
  • 43
  • 58

1 Answers1

2

With ImageButton (just like with Image) it is possible to control the way image defined by android:src is shown on the button: you can set scaleType - something you cannot do to the background.

Asahi
  • 13,378
  • 12
  • 67
  • 87