Saverio Member Licensed User Longtime User Sep 7, 2014 #1 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
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
Erel B4X founder Staff member Licensed User Longtime User Sep 8, 2014 #2 It is not possible to do it with reflection. However the Animation library raises the Complete event which you can use. Upvote 0
It is not possible to do it with reflection. However the Animation library raises the Complete event which you can use.
Saverio Member Licensed User Longtime User Sep 8, 2014 #3 Thanks for reply It is not possible to do it with reflection. However the Animation library raises the Complete event which you can use. Click to expand... 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
Thanks for reply It is not possible to do it with reflection. However the Animation library raises the Complete event which you can use. Click to expand... 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.