Reputation: 2613
i have this picture.
i want to make every red square a button and move to a new activity.Is that possible?thanks
Upvotes: 0
Views: 55
Reputation: 1066
I figure out that the image is inside an ImageView...
You can use the onTouchEvent of the View class to know in what pixel have been touch and calculate on which square the user have tap.
Upvotes: 1