I need to create a function that shows a thumbnail preview of all app pages. This feature must be available in app project pages, being activated by a button (like any children’s book which shows the book pages and allows people to click a thumbnail and be redirected to the page).
(Un)fortunately there are so many “related” code in the “Share Your Code” section and I have no idea which one to use to start.
In sum, what I would like to have:
<main.lua>
myThumbs = {“thumb1.jpg”,“thum2.jpg”,“thumbN.jpg”}
function showThumbs(x,y)
–reads all myThumbs images
–builds the image view in the correct x/y positions
–shows images, allowing swipe to display more pages
–when clicking an image, gets the position in the myThumbs table
–all things above should be handled by the external library
–via director:changeScene() goes to the appropriated page
}
Ideas where I should start? Can the scrollView widget do that?
[import]uid: 4883 topic_id: 20114 reply_id: 320114[/import] </main.lua>