Java – Arranges drawables drawn on Canvas

Arranges drawables drawn on Canvas… here is a solution to the problem.

Arranges drawables drawn on Canvas

Is there a way to arrange drawables drawn on Canvas before drawing? I mean setting which drawable draws in front and which drawable draws behind.

Solution

They are drawn in the order in which you draw them. Try drawing the one sitting in the back first, and then the front one.

Related Problems and Solutions