Compile problems
Yes, add the AS to the panel of the SV2D and don't declare the touch event handler of the AS.
I've done as above. I now get a compile error on the DrawRect command shown below (sv2dMap is the ScrollView2D) even though I have the latest Accelerated Surface library loaded:
Dim acsfMap As AcceleratedSurface
Dim rectMapPos As Rect
Activity.AddView("acsfMap", sv2dMap.Left, sv2dMap.Top, sv2dMap.Width, sv2dMap.Height)
acsfMap.Initialize("", False)
acsfMap.DrawRect(rectMapPos, Colors.Red, False, 2dip, False)
acsfMap.DrawLine(x1, yc, x2, yc, Colors.LightGray, 1dip, False)
acsfMap.DrawLine(xc, y1, xc, y2, Colors.LightGray, 1dip, False)
acsfMap.DrawCircle(xc, yc, GPS_Radius, Colors.Red, False, 3dip, False)
acsfMap.DrawPoint(xc, yc, Colors.Red)
acsfMap.Invalidate2(rectMapPos)
DoEvents
PS I've noticed when compiling the example Accelerated Surface app, that compiling gives "AndroidManifest.xml:17: error: No resource identifier found for attribute 'hardwareAccelerated' in package 'android'". Could this be due to my having android-10's android.jar in menu item Option > Config Paths?