Picker Wheel - Images as Labels

Hi all,

I’d like to replace the values in my picker wheel columns with images, but errors are suggesting only strings are allowed in the “labels” property.

Anyone know of a way to do this besides building a series of ScrollViews?  Lots of nice functionality in the picker wheel I could leverage.

Cheers.

You have at least two choices 

  1. Download the widget code and make your own version of the picker that takes images.

See my post in this thread on how to get and run a local copy of the widget library:

https://forums.coronalabs.com/topic/68339-categories-rows-on-tableview-doesnt-display-the-right-one/

  1. Use my picker code (which is pretty good, but may need some work to suit your exact needs.  Also, totally NOT supported so you’ll need to evaluate this on your own)

Code here:

https://github.com/roaminggamer/RG_FreeStuff/raw/master/AskEd/2017/06/RGEasyPicker.zip

https://www.youtube.com/watch?v=LQwq32COPZM&feature=youtu.be

All great tips… I think I’m just going to custom implement using a series of ScrollViews.  Will probably be quicker than parsing others’ code and will be more maintainable in the end.

Cheers!

Hi @ddubya82,

If you’re a bit “bold” you could download, include, and modify the open-source widget framework, adding images instead of text labels (or in addition to). It wouldn’t be that difficult to locate where that’s done, and I can probably point you in the right direction in fact, since I do occasional modifications to the Corona widget library myself.

https://github.com/coronalabs/framework-widget

Brent

You have at least two choices 

  1. Download the widget code and make your own version of the picker that takes images.

See my post in this thread on how to get and run a local copy of the widget library:

https://forums.coronalabs.com/topic/68339-categories-rows-on-tableview-doesnt-display-the-right-one/

  1. Use my picker code (which is pretty good, but may need some work to suit your exact needs.  Also, totally NOT supported so you’ll need to evaluate this on your own)

Code here:

https://github.com/roaminggamer/RG_FreeStuff/raw/master/AskEd/2017/06/RGEasyPicker.zip

https://www.youtube.com/watch?v=LQwq32COPZM&feature=youtu.be

All great tips… I think I’m just going to custom implement using a series of ScrollViews.  Will probably be quicker than parsing others’ code and will be more maintainable in the end.

Cheers!

Hi @ddubya82,

If you’re a bit “bold” you could download, include, and modify the open-source widget framework, adding images instead of text labels (or in addition to). It wouldn’t be that difficult to locate where that’s done, and I can probably point you in the right direction in fact, since I do occasional modifications to the Corona widget library myself.

https://github.com/coronalabs/framework-widget

Brent