Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Ramax11 opened this issue Dec 21, 2018 · 0 comments
Open

Comments

@Ramax11
Copy link

Ramax11 commented Dec 21, 2018

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

@Ramax11 Ramax11 changed the title Need Undo Redo feature for Sticker moving, scaling, rotating Need Undo Redo feature for Sticker movement, scale, rotation Dec 21, 2018
@Ramax11 Ramax11 changed the title Need Undo Redo feature for Sticker movement, scale, rotation How to implement Undo Redo feature for Sticker movement, scale, rotation Dec 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant