I’m currently trying to create a circle (via canvas drawing, opengl or drawable) and define 4-5 buttons inside of it. My first thought was to create some drawables (quarters of circles) and overlay them onto the main circle, but then I’ll have the touchable zone too large – e.g. in the middle of the main circle.
Is there anyone who tried this and found a decent solution to it?
You could just override
onTouch()in your customViewthat draws the circle (and other button graphics), and do a bit of simple maths when you get the finger down event to determine whether the user has touched within the circle, and what particular defined zone within the circle.