2

I am working on a feature where I need to shade the portion of bitmap where user swipes. I can get the start and end X coordinates but problem is getting height. Right now I am using MotionEvent.getTouchMajor() to get the finger touch ellipse major axis. But it doesn't return correct values for all devices like for Asus it returns correct values but it doesn't work on Samsung and Xiaomi etc. I have tried getSize() and getPressure() but the return almost same values all the time. What should be my approach here? How do the paint applications work?

nayakasu
  • 889
  • 1
  • 11
  • 32

0 Answers0