I must be doing somethng wrong...
I try it in apk, and it also fails...
Sorry for the inconvenience. I have fixed the extension, You can download it from the link i provided.
Also you need not call StartAnimation
after creating the animated gradient. It automatically starts.
It's OK. Don't worry. But now this is what it say.
call to 'in.akshatt.AnimatedGradient.AnimatedGradient.CreateAnimatedGradient(com.google.appinventor.components.runtime.AndroidViewComponent,java.lang.Object,com.google.appinventor.components.runtime.util.YailList,int)' has too many arguments (7; must be 5)
Note: You will not see another error reported for 5 seconds.
Thanks
Have u updated the extension?
Are u still getting that error?
Hi!! now it works perfectly!! Congratulations! Great extension!!
Great extension
Useful extension, thank you for sharing.
This doesn't work on screen components?
Hello! One of my 6th grade Multimedia students discovered this extension and now its showing up in all of their apps. Thank you so much for making this available as well as keeping it updated. Slick, easy to use extension and code with an amazing impact on their designs. Well done!
Updated CreateAnimatedGradient
block. Now you can provide a list of colors you want in gradient to animate.
Updated usage:-
First, thank you for your extension !
I would really love to make a background gradient for the SCREEN background (the full page). But impossible to add the SCREEN as component :
The error code :
Argument #2 (edu.mit.appinventor.aicompanion3.Screen1@55bdad2) to 'in.akshatt.AnimatedGradient.AnimatedGradient.CreateAnimatedGradient(com.google.appinventor.components.runtime.AndroidViewComponent,java.lang.Object,com.google.appinventor.components.runtime.util.YailList,int)' has wrong type (edu.mit.appinventor.aicompanion3.Screen1) (expected: com.google.appinventor.components.runtime.AndroidViewComponent)
Note: You will not see another error reported for 5 seconds.
What about using a vertical arrangement and putting all your other components in there?
Taifun
Yes, I can do it
What type of component is "Base" ?
Why error happen on initialize event?...are you duplicate it intentionally??...also what type of component "Base" is?? as @TIMAI2 said.
es una vertical arrangement
no eh duplicado el initialize event, no importa cuanto lo corrija da error
Try this:
anigradExtn.aia (9.3 KB)
Does it work?
(note you do not need the startAnimation block, the animation should start automatically)