prometheuspk
prometheuspk

Reputation: 3815

What's the use of ImageButton

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

Upvotes: 0

Views: 110

Answers (1)

Asahi
Asahi

Reputation: 13506

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.

Upvotes: 2

Related Questions