8

Android SurfaceView - Some paths render in delay when panning or zooming

view full story
linux-howto

http://stackoverflow.com – I've implemented some kind of a vector map using Android's SurfaceView and a Canvas. Each element of the map is represented by a path that is being drawn in a for loop that draws each path onto the canvas. Something like this - void doDraw(Canvas canvas) { canvas.drawColor(Color.WHITE); if (mMapModel == null) return; for (MapElement e : mMapModel.getMapElements()){ Path[] drawing = e.getDraw(); canvas.drawPath(drawing[0], mPathFramePaint); //draw the frame mPathFillPaint.setColor(e.color); canvas (HowTos)