StickerView
StickerView copied to clipboard
How to implement Undo Redo feature for Sticker movement, scale, rotation
I am implementing Undo Redo feature with this library.
I have a undo/redo list like this.
List<StickerPropertyModel> mUndoList = new ArrayList<>();
List<StickerPropertyModel> mRedoList = new ArrayList<>();
i want to set property value of xLocation
, yLocation
, scaling
, degree
. So i getting values from StickerView
. like this..
model.setxLocation(stickerView.getX());
model.setyLocation(stickerView.getY());
model.setDegree(stickerView.getRotation());
but the values not coming correctly...