Animation Util doesn't accept a Floating Action Button component

Issue

I am getting error about wrong type of the argument component when trying to animate a Floating Action Button by Animation Util :

Argument #2 (com.google.appinventor.components.runtime.Maker...) to 'com.google.appinventor.components.runtime.MakeroidAnimationUtilities.Zoom(com.google.appinventor.components.runtime.AndroidViewComponent,float,float,int)' has wrong type (com.google.appinventor.components.runtime.MakeroidFab) (expected: com.google.appinventor.components.runtime.AndroidViewComponen)

This happens with any Animation Util method when trying to use with Floating Action Button.

A Floating Action Button or FAB (even if you can see it on the screen) is not a visible component means that it can’t be animated since the animation utils ask for a visible component

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.