Xamarin.Android type swizzling

160 Views Asked by At

Has anyone been able to get Xamarin.Forms to work on API levels pre-11? ValueAnimator doesn't exist, and although this is provided by Xamarin.NineOldAndroids the Xamarin implementation doesn't reference that namespace.

Is there a way to use TypeForwardedToAttribute, ClassLoader overrides etc to modify this without recompiling Forms or NOA? Or possibly inject a using directive into the Xamarin assembly, or change the namespace mappings of NOA without recompiling.. I don't think any of those are possible but I thought I'd ask.

I have tried to change the java.system.class.loader but it doesn't seem to be used, everything appears to go through JNIEnv.FindClass which might use PathClassLoader directly? I'm not really sure.

1

There are 1 best solutions below

2
On

Xamarin.Forms supports Android 4.0(API 14) or higher, Check it out