Android ImageButton

Android ImageButton displays a button with an image not as text. ImageButton is similar to normal button, ImageButton have all the properties of normal button and we can onClick Listener like in the normal button.

In this tutorial, you will learn to use ImageButton in android application and handle onClick event. If you click an ImageButton, you will see a Toast message.

Start New Activity When Button is Clicked in Android
How to Change Android Button on Click/Press Color
Buttons - Android Button Examples

Android ImageButton Example: How to use ImageButton in Android

XML Layout File


Java Activity File


Strings.xml File


Now, run your ImageButton android application which will look like output given below.


Android ImageButton Example
Android ImageButton

XML 3424531267395466976
Home item