How to make a picture clickable in Android?

  • Android Studio is just a development tool (IDE). There is nothing special about installing an image using Android Studio for development. - Vladyslav Matviienko
  • @metalurgus understood) - user200355

2 answers 2

Set the image in the ImageView , and set it to OnClickListener . OnClickListener can be set to any View

  • Well, now I will try. Thank! - user200355
  • Maybe you should add android:clickable="true" - xAqweRx
  • @xAqweRx, no, not worth it. - Vladyslav Matviienko

You can specify a direct link to the method from the activation

 android:onClick = метод