// This gets called when the drawing surface is ready protected override void OnLoad(EventArgs e) { base.OnLoad(e); //----------- customApp = new CustomApp(); //----------- Android.Graphics.Point sc_size = new Android.Graphics.Point(); Display.GetSize(sc_size); int view_width = sc_size.X; int view_height = sc_size.Y; MakeCurrent(); //----------- customApp.Setup(view_width, view_height); //----------- // Run the render loop Run(); }