Using sdk 10,(Android Q) seems like breaking changes in Animation class.

i have used animation end event handler in my application. after updated target type as android q, events not available in animation class. and i found iAnimationListener interface. but not have enough information about this changes.

And also need to know, are we need to use condition compilation for this changes? like lower version use event handler and higher version use listener?

Animation MyAnimation = new Animation();
...
MyAnimation.AnimationEnd += (s,e) => {
if (ChildCount > 1) {
RemoveViewAt(0);
}
}

Regards,
Saravanan.

Best Answer

Answers

Sign In or Register to comment.