horizontal scrolling of image thumbnails

a few years ago, someone posted a simple library showing “horizontal scrolling of image thumbnails”

By “thumbnails”, I mean small icon-size images—less than full screen…the rest of the screen did not scroll or change as you flicked thru the images.  I can’t find it…does anyone remember that or is there a newer version for G2.0?  Thanks for any links or newer examples…

I had a similar need and simply used the slideViewer scene in the Business App Sample just recently. You can play with the scale of the images presented so you can potentially make images smaller to thumbnail size. Just an idea. 

great idea…oh, except the biz-app demo looks like it depends on storyboard…which I dont use…

ok, I guess I’ll have to do this myself…

but thats a good start!!

Thanks ksan

D

No worries. Look at the SlideView sample in the CL Samples / Interface folder. A little older code but its not Storyboard based. More or less the same thing. Good luck. 

You can do it will the scrollView widget. Just set verticalScrollDisabled = true and scrollHeight = 0 then load the widget with a series of thumbnail images e.g. from a table of image file references. As you add each image you can also attach an tap event listener which allows you to select an image e.g. to use as a menu. You can make the width of the scrollView to suit e.g. the width of the device screen.

I use this approach al lot for page menus in children’s books.

The biz sample app actually uses the slideView sample to slide through the full sized images.  The small square thumbnail view was written specifically for reproducing a cameraRoll type thumbnail view.  Even though this uses storyboard as a scene manager, the code to do the work should port to whatever you need it to do.

Rob

Great sample by the way but the globals use is a little contradictory to other best-practice tutorials from Corona Labs. Some cleanup & tweaking needed but it is a good foundation. 

I had a similar need and simply used the slideViewer scene in the Business App Sample just recently. You can play with the scale of the images presented so you can potentially make images smaller to thumbnail size. Just an idea. 

great idea…oh, except the biz-app demo looks like it depends on storyboard…which I dont use…

ok, I guess I’ll have to do this myself…

but thats a good start!!

Thanks ksan

D

No worries. Look at the SlideView sample in the CL Samples / Interface folder. A little older code but its not Storyboard based. More or less the same thing. Good luck. 

You can do it will the scrollView widget. Just set verticalScrollDisabled = true and scrollHeight = 0 then load the widget with a series of thumbnail images e.g. from a table of image file references. As you add each image you can also attach an tap event listener which allows you to select an image e.g. to use as a menu. You can make the width of the scrollView to suit e.g. the width of the device screen.

I use this approach al lot for page menus in children’s books.

The biz sample app actually uses the slideView sample to slide through the full sized images.  The small square thumbnail view was written specifically for reproducing a cameraRoll type thumbnail view.  Even though this uses storyboard as a scene manager, the code to do the work should port to whatever you need it to do.

Rob

Great sample by the way but the globals use is a little contradictory to other best-practice tutorials from Corona Labs. Some cleanup & tweaking needed but it is a good foundation. 

Rob Miracle => Where is the “The small square thumbnail view” code?can’t find it in the samples.

You need to get the Business Sample App from Corona Labs GitHub page. He is referring to the Photo Gallery scene in there. 

https://github.com/coronalabs/business-app-sample

Tank you. got it :wink:

Rob Miracle => Where is the “The small square thumbnail view” code?can’t find it in the samples.

You need to get the Business Sample App from Corona Labs GitHub page. He is referring to the Photo Gallery scene in there. 

https://github.com/coronalabs/business-app-sample

Tank you. got it :wink: