public NativeCustomView(CustomViewRenderer owner, Context context) : base(context) { //this.owner = owner; onDraw = g => owner.Element.OnDraw(g); isInputTransparent = () => owner.Element.InputTransparent; onTouches = tt => owner.Element.OnTouch(tt); }
public NativeImageCustomView(CustomViewRenderer owner, Context context) : base(context) { this.owner = owner; try { density = context.Resources.DisplayMetrics.Density; this.SetScaleType(ScaleType.FitCenter); this.SetLayerType(LayerType.Hardware, null); } catch (Exception ex) { Console.WriteLine(ex); } }