wuapnjie / StickerView

[No more support] A view which can add sticker and zoom,drag,delete it
MIT License
1.27k stars 311 forks source link

Lock Sticker #63

Open Hitexroid opened 7 years ago

Hitexroid commented 7 years ago

how to lock current sticker ? , not all stickers.

Surabhi3 commented 7 years ago

You need to find matrix of sticker on click Matrix matrix = stickerView.getCurrentSticker().getMatrix(); stickerView.example(matrix); In Stickerview public void example(Matrix matrix){ action = false; mat = matrix; } And then you can set in handelcurrentmode if(action == false){ if(mat.toString().equals(moveMatrix.toString())){ currentMode = ActionMode.NONE; } else { currentMode = ActionMode.DRAG; }

RB4915 commented 5 years ago

can you please explain how to place this code in handleCurrentMode? because i don't know and i place above code but it shows error.