Any ideas on how to go about creating an image grid?
I'm working on an iPad app that's basically a simple gallery for vehicle photos, and I'm probably going to go the same route as the iPad Photos app, with a grid of photo thumbnails that can be enlarged when tapped on (though without the spreadable 'stacks' of photos- just a single level grid).
However, I'm not exactly sure how to go about creating it. In HTML/CSS, I'd just use a bunch of relatively positioned DIVs floated left, but I don't exactly know how to do it in Titanium. Could those types of properties be applied to views? Or if not, does anyone have any other ideas of how I could go about creating such an interface?
Thanks!
2 Answers
-
Probably a combination of this:
http://github.com/appcelerator/KitchenSink/blob/master/1.2.x/KitchenSink/Resources/examples/scroll_views_tabs.jsand this:
http://github.com/appcelerator/KitchenSink/blob/master/1.2.x/KitchenSink/Resources/examples/image_view_scaling.jsCheck them out by loading the kitchen sink on your simulator and see how they work.
-
Thanks for the links! However, I can't seem to find the first example you listed in the KitchenSink app anywhere. Anyone know where it's located?