When to use ImageButton instead of ImageView?

I have confusion regarding ImageButton . I can make ImageView clickable and use it as a button, so why do we need ImageButton ? When developing an Android application, I found that ImageView much more useful than ImageButton , maybe I missed some of the ImageButton features. So I want to know what are the benefits of using ImageButton ? Thanks.

+7
source share
1 answer

This question has been considered in sufficient detail here: The difference between the clicked ImageView and ImageButton

To summarize: no differences other than the default style. By default, ImageButton has a non-zero background.

+7
source

All Articles