I want to add a halo animation to my B4X buttons. I've seen that Erel already developed something that comes close:
https://www.b4x.com/android/forum/threads/b4x-xui-simple-halo-animation.80267/
However, that animation is shown UNDERNEATH the button. I want the animation to be shown INSIDE the button, like in Android, starting from the point in the button where the finger went down (and not centered in the button).
This is simple to do with a panel, which can have an ImageView as a child, and by animating the child the animation can be played. However, buttons cannot have children. So I think the animation must be done by changing the background bitmap of the button. But that means the standard B4X animations cannot be used, which might have an impact on performance.
How can I attack this problem?
https://www.b4x.com/android/forum/threads/b4x-xui-simple-halo-animation.80267/
However, that animation is shown UNDERNEATH the button. I want the animation to be shown INSIDE the button, like in Android, starting from the point in the button where the finger went down (and not centered in the button).
This is simple to do with a panel, which can have an ImageView as a child, and by animating the child the animation can be played. However, buttons cannot have children. So I think the animation must be done by changing the background bitmap of the button. But that means the standard B4X animations cannot be used, which might have an impact on performance.
How can I attack this problem?