AndroidPuzzleGame icon indicating copy to clipboard operation
AndroidPuzzleGame copied to clipboard

issue with image

Open swethakanth opened this issue 7 years ago • 3 comments

the piece is resizing, when I drag, where to remove this in the code. Please help

swethakanth avatar Jun 13 '18 10:06 swethakanth

I am facing same issue.Please get rid out of it. Thanks in advance.

ChetnaNakum avatar Oct 10 '18 05:10 ChetnaNakum

omercavuslu avatar Feb 10 '19 13:02 omercavuslu

@swethakanth You don't have to "remove" it because this behaviour is not explicit specified or intended. It comes from using the RelativeLayout as the puzzle piece layer. This scales the containing view down to fit.

The fix is pretty simple: Just limit the modified top & left margin in a way that the puzzle piece view can't be moved out and you are done.

Here is how you can do it in Kotlin: https://github.com/StefanOltmann/PuzzleApp/commit/99900598a6f1de14466e43dc9ac2597ba033917b

Hope that helps.

StefanOltmann avatar Nov 08 '20 10:11 StefanOltmann