I'm attempting to create and consumable native android library for in my Xamarin.Forms project, native lib is here: https://github.com/florent37/DiagonalLayout
I've created the binding library project with the exported .aar and built the project with no errors.
I've also created an Xamarin Forms library project which references the android binding library so wrap the native component. See below:
The problem I am facing is when I run the application I get this error:
System.InvalidCastException: Specified cast is not valid.
The base UI element in the native project derives from android.widget.framelayout and I am trying to use as a frame in my forms project which i cant, but its the only way I really see how:
public class XFDiagonalView : Frame { }
I would really appreciate any help to resolve this issue and to be able to wrap the Android binding library for my XF project.