An app I'm doing requires a big round segmented button in the middle. Like this...
OK you can see an examaple here:
h t t p s : / / w p h o s t . s p i d e r - e . c o m / n o n - w p / s p l o b _ f r e k k e r . p n g
(If you take out all the spaces.)
I'm wondering how you would layout the central segmented button?
It's a large circle. The circle is split into four equal quadrants, and each quadrant is a separare button. I guess I could just do 5-different full size images (one for each possible button press, and one for no-button-preseeed) and then do some kind of hit test to see which area of the circle had been clicked.
Or is there a way to draw a control which is non-linear in shape, like a quarter circle?
What! We are not allowed to attach or embed images?
OK you can see an examaple here:
h t t p s : / / w p h o s t . s p i d e r - e . c o m / n o n - w p / s p l o b _ f r e k k e r . p n g
(If you take out all the spaces.)
I'm wondering how you would layout the central segmented button?
It's a large circle. The circle is split into four equal quadrants, and each quadrant is a separare button. I guess I could just do 5-different full size images (one for each possible button press, and one for no-button-preseeed) and then do some kind of hit test to see which area of the circle had been clicked.
Or is there a way to draw a control which is non-linear in shape, like a quarter circle?
Could you test what are the active area of each quarter circle ? I mean, do you need to click on the buttons label or in the full quarter circle ?
You can draw control of any shape.
Depending on what you want, you have several options.
2. draw a view with subviews and attach tap gestures on each subview (2 subviews for the up and down).
3. Most complex, but best: Create a full blown custom control where you will test exactly the hit zone ; it will then return a code for the area : 1 to 4 for the quadrants, 5 and 6 for up and down arrows. And manage the hilite when you hit any subview for great user feedback.
I'll try to develop it, for fun and show when ready.
You can draw control of any shape.
Depending on what you want, you have several options.
The simplest:
2. draw a view with subviews and attach tap gestures on each subview (2 subviews for the up and down).
3. Most complex, but best: Create a full blown custom control where you will test exactly the hit zone ; it will then return a code for the area : 1 to 4 for the quadrants, 5 and 6 for up and down arrows. And manage the hilite when you hit any subview for great user feedback.
I'll try to develop it, for fun and show when ready.