Android Question B4A @override

Saverio

Member
Licensed User
Longtime User
Hello everybody,

There is a way, in B4A, how to override an android method if there isn't setOnXxx method.

For example: android.view.View onAnimationEnd.

With java this can be easily done using the "@override" annotation
B4X:
 <Java Code>

@Override
protected void onAnimationEnd() {
  super.onAnimationEnd();
  //my code
}

May it be done in B4A via reflection?

Thanks
 

Saverio

Member
Licensed User
Longtime User
Thanks for reply
It is not possible to do it with reflection. However the Animation library raises the Complete event which you can use.
That's just an example.
There are lot of other onXXX methods which they don't have a setOnXXXlistener.

I thought that it can be possible via script or something like or libraries or both.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…