When to use ImageButton rather than ImageView?

android, android-layout

Solution

This question was answered quite thoroughly here: Difference between a clickable ImageView and ImageButton

To sum it up: There's no differences, except default style. ImageButton has a non-null background by default.

Problem

I have a confusion about `ImageButton`. I can make an `ImageView` clickable and use as button, so why do we explicitly need an `ImageButton`? When designing Android app, I found `ImageView` is much more useful than `ImageButton`, perhaps I missed some of the features of `ImageButton`. So I want to know what are the advantages of using `ImageButton`? Thanks.

Original source

Related problems