menu_on_top
menu_on_top

Reputation: 2613

How to make buttons from background places?

i have this picture.

enter image description here

i want to make every red square a button and move to a new activity.Is that possible?thanks

Upvotes: 0

Views: 55

Answers (3)

Jordi Coscolla
Jordi Coscolla

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

Aurelian Cotuna
Aurelian Cotuna

Reputation: 3081

Yes it is possible if you use overlays Here is a tutorial

Upvotes: 1

Dan S
Dan S

Reputation: 9189

To answer your question, yes its possible.

Upvotes: -1

Related Questions