ClickEffect - Multiple click effects for components: Button, Image, Arrangement, and Label

ClickEffect
Multiple click effects for components: Button, Image, Arrangement, and Label.

GIF_20250501_045503_909


Effect

Configure the effect for one or multiple components. Use Play to apply it to all of them.

  • Values ​​can be individual or can be comma-separated lists.

  • repeatCounts = -1 will make the animation infinite.

  • fillAfters = true will cause the animation to remain in its final state, but if it's false, the animation will stop in its initial state.

    • This won't work if `playSequentially = true.
  • Set "playSequentially" to true to play the effects one after the other, or false to play them together.

  • Now you only need to call this function once, and with the Play function you can call it as many times as you want.

Play

Reproduce the effect configured for the specified ID on all associated components.


Stop

Stops animation for the specified ID on all associated components.


AnimationStart

It activates when the animation starts.


AnimationEnd

It activates when the animation ends.


v1.2 March 18, 2026.

  • The ClickEffect function was renamed to Effect.

  • Now, instead of accepting only one component, it can accept a list of components which can be animated together by calling the Play function with the specified ID.

  • The SetEffect and AvailableEffects functions were removed.

  • When I clicked the button that had the effect, the native AI2 click event wasn't triggered due to interference with the OnClickListener.

    • It's fixed now.

DiceRoller.aia (37.9 KB)

joejsanz.joedevclickeffect.aix (18.3 KB)


JDK: 11
Minimum API Level: 21
Updated On: 2026-03-18T07:00:00Z

Built using: FAST-CLI v5.7.0-premium


Thanks.

8 Likes

Nice, but you can also do it with Phase:

There are dozens of techniques...

Oh, that's right, I had forgotten that Phase already existed. :grimacing:

1 Like

Update v1.1 May 01, 2025.

1 Like

Update v1.2

1 Like