santoshko / codenameone

Automatically exported from code.google.com/p/codenameone
0 stars 0 forks source link

Add carousel component #757

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Please add a carousel component to the Theme. I would like to have support for 
page indicators in it and a callback on pagechanged.

Original issue reported on code.google.com by mhvd...@gmail.com on 21 Jun 2013 at 8:54

GoogleCodeExporter commented 9 years ago
Can you give this a bit more priority. We would like to use this in some months.

Original comment by mhvd...@gmail.com on 21 Oct 2013 at 9:01

GoogleCodeExporter commented 9 years ago
Can you be more specific about the requirement? 
The carousel component name is used in completely different contexts in various 
platforms. Do you mean the round buttons at the bottom in iOS?

Original comment by shai.almog on 21 Oct 2013 at 9:05

GoogleCodeExporter commented 9 years ago
This is the basic idea of what we want: 
http://www.youtube.com/watch?v=b8nt-gqEfso
Other requirements:
- Set it on the whole screen as a view without showing the left and right views
- Set a view and be able to see the left and right
- Set infinitife loop or stop on end
- Swipe gestures

Original comment by mhvd...@gmail.com on 21 Oct 2013 at 9:14

GoogleCodeExporter commented 9 years ago
A swipe view that takes up the whole screen is either an ImageView or Tabs (you 
can hide the tabs themselves). Tabs isn't cyclic (although we can add that in 
theory) ImageView supports both cyclic and non-cyclic mode.

List supports a horizontal mode and fixed center mode. By setting it to that 
mode you can get roughly this effect, if you look at the Tipster demo (which is 
very old) we use it there. It doesn't contain the 3d aspects of zooming in/out 
of the currently selected element though, these are pretty hard to get right 
across platforms.

Original comment by shai.almog on 21 Oct 2013 at 9:18

GoogleCodeExporter commented 9 years ago
I have to look into the list in horizontal mode. But in any case, we want to 
put some containers, Label, etc. in there, so ImageView won't work.

Original comment by mhvd...@gmail.com on 21 Oct 2013 at 9:23

GoogleCodeExporter commented 9 years ago
Tabs should work then. You can also use the List component in such a case.

Original comment by shai.almog on 21 Oct 2013 at 9:26