1

Android canvas get cleaned when using many path and paint object

view story
linux-howto

http://stackoverflow.com – Can someone explain me why on earth this piece of code does not draw every object? public class A extends View { private Paint paint = new Paint(); private Path path = new Path(); ArrayList<Pair<Path, Paint>> paths = new ArrayList<Pair<Path, Paint>>(); public A(Context context) { super(context); } @Override protected void onDraw(Canvas canvas) { for (Pair<Path, Paint> p : paths) { canvas.drawPath(p.first, p.second); } } @Override public boolean onTouchEvent(MotionEvent event) { float eventX = event.getX(); float eventY = event.ge (HowTos)