Is it possible to mimic the pill buttons that are found in App World, specifically "My World", where you are able to switch between "Updates", "Downloaded", and "Available"? There share a similar UI design to toggle switches.
Which BlackBerry OS version are you referring to? BB5/6/7/PlayBook/10
My apologies, 10.
You mean like the ones in BBM where the selection slides between the options on the Invites tab?
Well it's a little different, on app world you are able to grab the "bar" and slide it to each header...
I've added it to the 0.9.5 milestone
Now updated to the 0.9.6 milestone since 0.9.5 went with what was in it at the time :o)
updates for issue #417
Just checked in some sizing and coloring changes. But it still uses the highlight color to show touch interaction instead of the animated sliding effect. This effect will come later.
So far only the dark styling is checked in
Updated the screenshot in the wiki
updates for light coloring for issue #417
Light coloring has now been added.. just the animation effect left
Made some good progress today.. Still dealing with a z-index ordering issue with Ripple and PlayBook. Need to figure out what's going on there.
The animation is now working, but I still don't have it doing the "follow your finger" animations. Just working on the z-index issue first then I'll check-in what I have
will this remove the focus highlight too? currently in bbui on BB10 you get the blue highlight show first, in appworld this seems redacted, which looks a little more fluid.
Yes, it will remove the focus highlight as well.. The pill buttons will look exactly like the Cascades ones. An example of the light theme is in the "Invites" section of BBM, and an example of the dark theme is in App World "My World" area
Z-index figured out.. now working on some weird behavior on PlayBook before checking in the code
Ah.. PlayBook issue is something else, not related to pill buttons
updates for pill button issue #417
Ok.. All done.. We'll leave the animation to follow your finger as a follow up task :o)
Re-opening this one.. current issue is that if you have an button set as selected that isn't the first button, it won't move the pill under that button.
Ok, fixes are now in. I also made it so that both the pill button and toggle button selected state animation happens after the screen transitions have ended. This will help for smoothing the animation of screen transitions so that they are not competing with the animation of the controls.