I have an Android App that is in Java. I follow most of it but am confused at a particular piece of code. Namely,
How does DrawingClassArrayList.size ever change? Is it some kind of counter and if so, how?
Mike.
Code:
protected void onDraw(Canvas c) {
super.onDraw(c);
if (DrawingClassArrayList.size() > 0) {
c.drawPath(
DrawingClassArrayList.get(DrawingClassArrayList.size() - 1).getPath(),
DrawingClassArrayList.get(DrawingClassArrayList.size() - 1).getPaint());
}
}
Mike.