I am curious, why would I ever use Button or ImageButton, when TextViews, ImageViews, and everything else all can have onclicklisteners, all can have src’s and background attributes, states and everything else that a Button or ImageButton offers
I might be missing something, so please reveal what it is
There’s no differences, except default style.
ImageButtonhas a non-null background by default.Also,
ImageButton.onSetAlpha()method always returns false,scaleTypeis set tocenterand it’s always inflated as focusable.Here’s
ImageButton‘s default style: