Android: Why use imagebutton?
Warning: I am a noob so this might not be a "regular question".
My question: Instead of using an imagebutton in Android isnt it the same to use an image, make clickable=true and then use that onClick as well?
Isnt that the same? Or am I missing something?
The only thing my google ventures has given me is that you can hav开发者_JS百科e different states onPressed, onReleased etc but that too can easily be done via the java code.
What am I missing?
Thanks!
ImageButton gives you more control on how to display the image than if you were using the base View class.
精彩评论