B4A Library B4XLib 100% B4X code to animate your layout.

Hi, this B4Xlib animates your layout . views falls from to top to their initials position

The B4XLib and 2 sample projects (B4J and B4A) are attached to this post. Should be OK with B4I

The animation use a Cubic Bezier Curve for 'elastic' effect

spsp
 

Attachments

  • B4Xfallingdown.b4xlib
    3.1 KB · Views: 66
  • fallingdown.zip
    32.1 KB · Views: 62

spsp

Active Member
Licensed User
Longtime User
Hi,

Update.

You can now add many animations with a single instance.

declare variable:
Private fd As cFallingDown

initialize with first animation:
fd.Initialize(Root,1000,50)

add more animations:
    fd.add(fPane1,1000,50)
    fd.add(fPane2,1000,50)

run animations and wait for complete:
    wait for (fd.run) complete (n As Int)
    'n is the number of view that fall down

attached files in Post #1 updated

spsp
 
Top