Forum Xamarin.Forms
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

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 change.

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);
}
}

Best Answer

Answers

Sign In or Register to comment.