I’ve tried to set up my own graphics for a segmented control, and apart from the fact that it is visually wrong even with the default theme, it goes massively wrong with my own graphics.
At the bottom of this post I’ve listed my definitions for my left, middle and right segments.
As you can see the left and right sections aren’t the same width as the middle section, but really that shouldn’t be an issue (as in theory the middle bit gets scaled properly - after all they managed it with the 9 slice for buttons).
I took the liberty of going over the widgets 2 source at github and, well… it is a miracle it even vaguely works - the calculations are just basically wrong in several places (luckily it ‘works’ because in the default theme the left, middle and right definitions are the same width - is it *really* that hard to calculate left + right + middle * #items?). Is this likely to get fixed any time soon or do I just have to scrap this entirely and use custom code instead? IE do something that not only entirely negates the point of having the widgets but also cost me a day’s worth of work working through the various ‘features’?
I am not a happy bunny I must admit, particularly after reading that widgets 2 is essentially deemed complete and major bugs sorted.
Is there any chance of:
- Updating the widgets source code on github to the latest and
- Accepting user submissions to fix the various problems?
Barry
{ -- segmentedControl\_divider x=103, y=230, width=4, height=43, }, { -- segmentedControl\_left x=5, y=230, width=10, height=43, }, { -- segmentedControl\_leftOn x=5, y=185, width=10, height=43, }, { -- segmentedControl\_middle x=15, y=230, width=150, height=43, }, { -- segmentedControl\_middleOn x=15, y=185, width=150, height=43, }, { -- segmentedControl\_right x=295, y=230, width=10, height=43, }, { -- segmentedControl\_rightOn x=295, y=185, width=10, height=43, },