Reputation: 45
I am new in Android , so i want to make an Image View work like a button. So can anyone tell me how to do that?
Thanks In Advance :)
Upvotes: 0
Views: 36
Reputation: 813
Use ImageView's setOnClickListener method e.g. image1.setOnClickListener(this) or you can use ImageButton instead of ImageView.
Upvotes: 1