StickerView icon indicating copy to clipboard operation
StickerView copied to clipboard

Zoom sticker from outside sticker

Open the-aditya opened this issue 7 years ago • 6 comments

Just like on instagram stories sticker can be zoomed without placing fingers on the sticker. I want to achieve functionality like this. Its impossible or troublesome to zoom sticker when its zoomedout n made very small. How can i solve this?

the-aditya avatar Apr 22 '18 07:04 the-aditya

I had to modify DrawableSticker.class for that and add an invisible holder view in case the original drawable get so small, then you can use your fingers from the right-bottom area of the original sticker drawable.

MuhammedRefaat avatar Apr 26 '18 07:04 MuhammedRefaat

i am still trying.i made a framelayout over stickerview and on its ontouch i called stickerviews ontouch... now sticker responds but i need to make it work as desired but not sure if it works. so can u explain a bit more on ur idea. thank u for ur response.

the-aditya avatar Apr 26 '18 07:04 the-aditya

Check my forked repository here:

MuhammedRefaat/StickerView

MuhammedRefaat avatar Apr 26 '18 08:04 MuhammedRefaat

have u made changes to other files too? coz argument on constructor has changed too..

the-aditya avatar Apr 26 '18 08:04 the-aditya

I'm just passing the context along with the drawable when initiating the DrawableSticker, instead of

sticker = new DrawableSticker(drawable);

it will be

sticker = new DrawableSticker(drawable, context);

MuhammedRefaat avatar Apr 26 '18 11:04 MuhammedRefaat

used codes from stickerview class and added it to the stickerview itself inside activity.

the-aditya avatar May 01 '18 08:05 the-aditya