PhotoEditor icon indicating copy to clipboard operation
PhotoEditor copied to clipboard

How to disable scroll on photo editor view?

Open Swati4star opened this issue 6 years ago • 3 comments

I am having this issue:

  • I have added the photoeditorview inside a scroll view (https://github.com/Swati4star/Images-to-PDF/blob/4ddcad91a5f07fce036cb74c722395ed62cd568b/app/src/main/res/layout/activity_photo_editor.xml#L73), because otherwise the image was occupying the whole screen.

  • Now, when I use brush effect, on drawing any vertical line, the whole view scrolls (instead of brush effect getting drawn)

Possible alternative

  • I tried disabling the scrollview when brush effect is applied, but this is not doing the trick.

Is there a way I can disable scroll on photoeditor view directly?

Swati4star avatar Oct 08 '18 06:10 Swati4star

I didn't get you by image occupying whole screen ? Have you tried with NestedScrollView ?

burhanrashid52 avatar Oct 11 '18 14:10 burhanrashid52

If I set the PhotoEditorView's height as wrap_content, it occupies the whole screen. That's why I have wrapped it inside scrollview. Please check the xml file link I have posted in the description

Swati4star avatar Oct 11 '18 16:10 Swati4star

Okay, Let me check.

burhanrashid52 avatar Oct 15 '18 07:10 burhanrashid52