How to implemement undo features in painting application in Android?

后端 未结 4 1647
情歌与酒
情歌与酒 2021-01-22 12:49

i want to do undo features in in my application.. for this i searched i net found that take arraylist of x,y points which i have done below code i am unable for undo the drawing

4条回答
  •  萌比男神i
    2021-01-22 13:52

    I didn't try, but i think use two canvas and bitmaps is helpful, on draw the current state, one is still former state, only need to restore the former one. But it only can restore on step.

提交回复
热议问题