Any way to make the newSwitch bigger?

Hello,

The switch along with the radio button and checkbox is so small especially when using 640x960 screen size. Is there any way to make them bigger?

Thanks,

Warren

Never mind, guess I can use the width and height properties for it!

Warren

Hi Warren,

I’m with you - the widget newSwitch is pretty lackluster - in addition to being rendered for 320x480, it doesn’t respond to swipes, only taps. I rolled my own switch that allows for lots of customization (sizing, custom colors, swiping, etc), and I’m planning on modularizing it for easy “one line of code” integration and sharing on my site, but it’s probably still a few weeks away from being polished and documented/commented because I’m busy on a client job right now. But if you don’t mind using it in an alpha/beta stage, I’m happy to share. Just let me know a way to reach you (email, Twitter, whatever) and I’ll send it to you warts and all.

P.S. As an alternative you can adjust the xScale & yScale of widget.newSwitch, but it gets ugly because the included images are low-res. Or you could grab the widget code from CL’s Git repository and add higher-res images yourself. I’m using vector graphics in my module, to reduce the impact on texture memory, but it’s going to lose any soft-edged shadows as a result. (sigh.)

Never mind, guess I can use the width and height properties for it!

Warren

Hi Warren,

I’m with you - the widget newSwitch is pretty lackluster - in addition to being rendered for 320x480, it doesn’t respond to swipes, only taps. I rolled my own switch that allows for lots of customization (sizing, custom colors, swiping, etc), and I’m planning on modularizing it for easy “one line of code” integration and sharing on my site, but it’s probably still a few weeks away from being polished and documented/commented because I’m busy on a client job right now. But if you don’t mind using it in an alpha/beta stage, I’m happy to share. Just let me know a way to reach you (email, Twitter, whatever) and I’ll send it to you warts and all.

P.S. As an alternative you can adjust the xScale & yScale of widget.newSwitch, but it gets ugly because the included images are low-res. Or you could grab the widget code from CL’s Git repository and add higher-res images yourself. I’m using vector graphics in my module, to reduce the impact on texture memory, but it’s going to lose any soft-edged shadows as a result. (sigh.)