ResizableRectangleOverlay icon indicating copy to clipboard operation
ResizableRectangleOverlay copied to clipboard

Issue while resizing the rectangle

Open nirmalprajapat712 opened this issue 6 years ago • 7 comments

Hello Chintan , i gone through your project but i found some issues like: 1 -> When i am resizing the rectangle by touching the colorballs (mostly the upper left ball and lower right ball ) , the rectangle perimeter/border disappears.
2 -> When a colorball crosses the other colorball ,the rectangle again goes disappear.

Please suggest any solution. Thanks

nirmalprajapat712 avatar Nov 08 '17 10:11 nirmalprajapat712

This is very simple code to create a rectangle on view. It require finishing to work with dynamic approaches. Due to lack of time I am not maintaining it for some time.

ChintanRathod avatar Nov 09 '17 05:11 ChintanRathod

sir please suggest any solution so that i can implement the remaining part to avoid these issues. I'll manage with the first point , you just tell me the solution of second one that I have mentioned above . Thnks

nirmalprajapat712 avatar Nov 09 '17 06:11 nirmalprajapat712

For 2nd point, we require to prevent rectangle to be reverse. Right corner ball must not cross left top ball. Right bottom ball must have positive difference to top left ball. This way you can prevent disappear of rectangle.

ChintanRathod avatar Nov 10 '17 05:11 ChintanRathod

Hi all, I am using this code for my application. The drawing box is disappearing on Marshmallow devices and lower but working fine on Na-gut and higher devices.

Can you please let us know how can we fix it?

Thank you.

asifjavaid avatar Jun 25 '19 12:06 asifjavaid

@asifjavaid I am sorry to say but I am no longer maintaining this project due to time crunches. I guess to fulfill your requirement, you can use Android-Image-Cropper library. It might be helpful.

ChintanRathod avatar Jun 27 '19 11:06 ChintanRathod

hey, what if I want to implement multiple rectangles like this?

samiraj99 avatar Sep 28 '19 08:09 samiraj99

@samiraj99 You require to initialize same class for 2 times. You will able to put more than 1 rectangles.

ChintanRathod avatar Sep 30 '19 11:09 ChintanRathod