void Initialize(global::Android.Content.Context context) { _touchMan = new AndroidCanvasTouchManager(0); _touchMan.LocationFromViewLocationFunc = p => new PointF(p.X / _zoom, p.Y / _zoom); MinFps = 4; MaxFps = 30; _fps = (MinFps + MaxFps) / 2; _handler = new global::Android.OS.Handler(); var a = context as global::Android.App.Activity; if (a != null) { Zoom = a.GetDpi() / 160.0f; } SetWillNotDraw(false); }
void Initialize(global::Android.Content.Context context) { _touchMan = new AndroidCanvasTouchManager (0); _touchMan.LocationFromViewLocationFunc = p => new PointF (p.X / _zoom, p.Y / _zoom); MinFps = 4; MaxFps = 30; _fps = (MinFps + MaxFps) / 2; _handler = new global::Android.OS.Handler (); var a = context as global::Android.App.Activity; if (a != null) { Zoom = a.GetDpi () / 160.0f; } SetWillNotDraw (false); }
void Initialize() { _touchMan = new AndroidCanvasTouchManager (0); MinFps = 4; MaxFps = 30; _fps = (MinFps + MaxFps) / 2; _handler = new global::Android.OS.Handler (); SetWillNotDraw (false); }