0

The whole idea of what I'm doing is, creating a notebook use case, where we can have n pages. Now, I have used RecyclerView and added the item adapter, using the complete screen as a single item for writing.

Now, whenever I start writing on the view which is the property for HW acceleration, I got events but the recycler adapter thinks differently.

How do I solve this? I would like to make sure when writing is happening using a digital pen, the adapter should ignore it, and when we do finger swipe it should move to the next screen/page.

sBot
  • 105
  • 1
  • 7
yathish
  • 17
  • 2
  • Does it work with the setOnTouchListener? – Felix Jul 26 '20 at 12:34
  • I will get back to you on this, overall I need more control, like while writing in the view , I don't need swipe, but when I'm using finger only I need swipe and also, there is a case when writing using digital pen, there is a chance to get both as we might be pressing withour hand on the screen while writing, and also, just before swiping to next page I need to save the present page, some house keeping – yathish Aug 01 '20 at 06:00

1 Answers1

0

You can use a setOnTouchListener to differentiate between the events. check this links out from SO:

here or here or here

Felix
  • 284
  • 2
  • 12