Skip to content

How to implement Undo Redo feature for Sticker movement, scale, rotation #32

Description

@Ramax11

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...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions