carousel for android

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
klamp
Posts: 18
Joined: Sun Sep 20, 2020 10:36 am

carousel for android

Post by klamp » Fri Oct 02, 2020 1:34 am

is there an "android carousel library" for android. I want to make like the picture I attached. But I found no answer.

Thanks for helping


Image

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10078
Joined: Fri Feb 19, 2010 10:17 am

Re: carousel for android

Post by richmond62 » Fri Oct 02, 2020 7:52 am

Can you explain what you mean by a 'carousel' exactly?

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: carousel for android

Post by Klaus » Fri Oct 02, 2020 8:21 am


klamp
Posts: 18
Joined: Sun Sep 20, 2020 10:36 am

Re: carousel for android

Post by klamp » Fri Oct 02, 2020 1:41 pm

@klaus
thanks for helping


@ richmond62
I mean maybe like this article

https://medium.com/@lobothijau/create-c ... bf5ef500a9

Image

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7389
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: carousel for android

Post by jacque » Fri Oct 02, 2020 5:33 pm

This wouldn't be too hard. Lock the screen for visual effect in rect (see dictionary for that,) show the next image, then unlock the screen with a visual effect, maybe reveal right or reveal left.

The dictionary lists the visual effect options you can try.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10078
Joined: Fri Feb 19, 2010 10:17 am

Re: carousel for android

Post by richmond62 » Sat Oct 03, 2020 7:20 pm

Carousel for desktop that can be easily adapted:
-
rb.jpg
-
New version linked in new post lower down.
Last edited by richmond62 on Sun Oct 04, 2020 6:59 pm, edited 1 time in total.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10078
Joined: Fri Feb 19, 2010 10:17 am

Re: carousel for android

Post by richmond62 » Sat Oct 03, 2020 8:13 pm


klamp
Posts: 18
Joined: Sun Sep 20, 2020 10:36 am

Re: carousel for android

Post by klamp » Sun Oct 04, 2020 12:25 pm

thanks richmond62. you really help me.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10078
Joined: Fri Feb 19, 2010 10:17 am

Re: carousel for android

Post by richmond62 » Sun Oct 04, 2020 7:00 pm

rb2.jpg
-
Added some "auto" buttons . . .

Button "AUTO LEFT":

Code: Select all

on mouseUp
   put fld "PIXN" into PSTART
   repeat until PSTART < 2
      send "mouseUp" to button "BK"
      wait 3 secs
      put fld "PIXN" into PSTART
   end repeat
end mouseUp
https://www.dropbox.com/s/6x6lt989t46e9 ... e.zip?dl=0

Post Reply