PhotoEditor
PhotoEditor copied to clipboard
How to disable scroll on photo editor view?
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?
I didn't get you by image occupying whole screen ?
Have you tried with NestedScrollView
?
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
Okay, Let me check.