From 17fdde66d94155fc62a034fa6658995bef6fd6e5 Mon Sep 17 00:00:00 2001 From: Jason Smith Date: Tue, 22 Mar 2016 13:02:25 -0700 Subject: Initial import --- .../NativeViewWrapper.cs | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Xamarin.Forms.Platform.Android/NativeViewWrapper.cs (limited to 'Xamarin.Forms.Platform.Android/NativeViewWrapper.cs') diff --git a/Xamarin.Forms.Platform.Android/NativeViewWrapper.cs b/Xamarin.Forms.Platform.Android/NativeViewWrapper.cs new file mode 100644 index 00000000..eecef9bc --- /dev/null +++ b/Xamarin.Forms.Platform.Android/NativeViewWrapper.cs @@ -0,0 +1,22 @@ +namespace Xamarin.Forms.Platform.Android +{ + public class NativeViewWrapper : View + { + public NativeViewWrapper(global::Android.Views.View nativeView, GetDesiredSizeDelegate getDesiredSizeDelegate = null, OnLayoutDelegate onLayoutDelegate = null, + OnMeasureDelegate onMeasureDelegate = null) + { + GetDesiredSizeDelegate = getDesiredSizeDelegate; + NativeView = nativeView; + OnLayoutDelegate = onLayoutDelegate; + OnMeasureDelegate = onMeasureDelegate; + } + + public GetDesiredSizeDelegate GetDesiredSizeDelegate { get; } + + public global::Android.Views.View NativeView { get; } + + public OnLayoutDelegate OnLayoutDelegate { get; } + + public OnMeasureDelegate OnMeasureDelegate { get; } + } +} \ No newline at end of file -- cgit v1.2.3