How to make a picture clickable in Android?
2 answers
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 = метод
|