Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Banner Horizontal View Sliding
Started by cyberbora101 Nov 12 2016 12:54 AM

3 replies to this topic
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

cyberbora101

[GLOBAL: userInfoPane.html]
cyberbora101
  • Observer

  • 20 posts
  • Corona SDK

Untitled.png

 

 

Hello Guys!. Kindly help me in creating my new mobile application. I want to create a automatic banner photo like in the picture above. I made a sliding view but that's not automatic in sliding. Is there any plugin or someone know how to do it? Thaank you!



[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 22,046 posts
  • Corona Staff

There is an image slider example sample app in the sample code that ships with Corona:

 

SampleCode/Interface/SlideView

 

You can adapt that code to your needs.

 

Rob



[TOPIC: post.html]
#3

cyberbora101

[GLOBAL: userInfoPane.html]
cyberbora101
  • Observer

  • 20 posts
  • Corona SDK

Hello Rob, yes I already made a sliding view, but do you know how can I make it automatic sliding? thanks

 

[TOPIC: post.html]
#4

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 22,046 posts
  • Corona Staff

Perhaps you could use timer.performWithDelay() (https://docs.coronalabs.com/api/library/timer/performWithDelay.html) to have it switch every few seconds. You probably would have to look at whatever code is in the touch handler for swiping, and duplicate it. Maybe you can pull the code that actually changes the slide out to it's on function if it's inside the swipe handler (it's been a while since I looked at that code) and have the touch event call the function that way your timer could also call the function without having to duplicate the code.

 

Rob




[topic_controls]
[/topic_controls]