Can non-square hit areas be done on android? i.e for making a n-segmented pie chart clickable. This was th default behaviour on ActionScript, I can't believe it's just not a thing on Android but that seems to be the case.
Similar to pie chart, what if we have a target type shape ( concentric nested circles ) and we want to detect which ring in the target has been touched, are we seriously limited to square hit areas?
I've seen one proposed solution which is to use colour, but I have instances where the color is identical on different shapes, so this would not work.
It's 2021, I can't beleive I can do something easily on ancient ActionScript but not on swanky Android. Am I missing something?
As a tangible example - a pie wedge using drawarc on the onDraw method of a class...
var oval = RectF(0f, 0f, _size, _size)
canvas.drawArc(oval, 0f, _arc.toFloat(), true, paint)
In the parent piechart class (we we instantiate all these wedges), how would we get hit detection within the precise area of the wedge?