I have an app where users are moving on a View background, I'm drawing the users, but would also like to display a trail after them with a few seconds of history. I could do it using a bunch of line segments, but I worry that would be inneffective.
I would like some preimplemented class that performs this, so I don't have to get my hands dirty with making the actual drawing efficient. I was thinking in the lines of a of a android.graphics.Path, but I can't find a way to contonously remove the oldest parts of it. Is there a way to achieve this using a path?
If not does anyone have any other tips? Anywhere I could look for a handy and efficient solution?
Grateful for any help!