Android Question Draw any shape

BaGRoS

Active Member
Licensed User
Longtime User
Hi

Needs to draw a variety of shapes, circles squares triangles. Filled with color or texture. I thought about ImageView, but when they are close to each other I will not be able to check in which exactly was clicked. Also needs them to animate the show with a fairly high accuracy at millisecond.
Some ideas?

Best regards
 
even if they overlap. You always get the clicked image in the click event.
Note that a imageview always have a rect to click on. Even if you show a circle. Always the hole imageview is clickable.
 
Upvote 0
Testy.jpg
This is sample picture
4 times ImageView, and I want testing click ONLY on color triangles, not on space between.
 
Upvote 0
For test I make Screenshot_20160412-135617a.jpg and on phone I see Screenshot_20160412-135617.png If I click in space between circles in black space then ImageView recognizes a click. I need to know when it clicked ONLY circle, not all ImageView. I save images as png without background with transparent.
 
Last edited:
Upvote 0
Back
Top