Description
Currently, it is only possible to edit notes using a stylus. This works well if you have a tablet and want to write something, but if you're on the go and want to quickly add something, that's a problem. That's why adding finger drawing support would be useful. If finger drawing is enabled, you should be able to draw using your finger. To avoid conflicts, panning with one finger should be disabled and only be possible using two fingers while finger drawing is enabled.
Steps to Implement Finger Drawing
- Add a button to the title bar in
app/src/main/res/layout/fragment_draw.xml (maybe this one: https://phosphoricons.com/?q=hand-pointing)
- Implement Finger drawing functionality in the
DrawingView class using a field with a setter, and check the value in the onTouchEvent in DrawingView.java, around line 455
- In the
drawFragment, enable/disable finger drawing for every DrawingView in List<DrawingView> pages on button press using the setter
- Disable pan with one finger in zoomlayout using
setOneFingerScrollEnabled(false) and zoomlayout.setFlingEnabled(false) when finger drawing is enabled, and reenable panning with one finger if finger drawing is disabled
Description
Currently, it is only possible to edit notes using a stylus. This works well if you have a tablet and want to write something, but if you're on the go and want to quickly add something, that's a problem. That's why adding finger drawing support would be useful. If finger drawing is enabled, you should be able to draw using your finger. To avoid conflicts, panning with one finger should be disabled and only be possible using two fingers while finger drawing is enabled.
Steps to Implement Finger Drawing
app/src/main/res/layout/fragment_draw.xml(maybe this one: https://phosphoricons.com/?q=hand-pointing)DrawingViewclass using a field with a setter, and check the value in theonTouchEventinDrawingView.java, around line 455drawFragment, enable/disable finger drawing for every DrawingView inList<DrawingView> pageson button press using the settersetOneFingerScrollEnabled(false)andzoomlayout.setFlingEnabled(false)when finger drawing is enabled, and reenable panning with one finger if finger drawing is disabled