I would like to know what the best way would be to draw a background image (this would be pretty much static) and a foreground object which would move depending on user input in Android?
Sort of like a side-scroller game (when the foregroudn object needs to animate and change a lot more than the background).
TIA
You could set the background image as main view with setContentView. For drawing foreground image You could use custom class that extends View and do drawing in it “onDraw” method. Something like this:
I hope this helped