Android- Kotlin: how can i measure and detect covered area by a finger touch on screen

216 Views Asked by At

I want to know how much area my finger covers when I touch the phone screen. I used many sensors for some events. I compile my code with Android Studio. They asked this question 11 years ago but the motionEvent.getSize() response is not working or not correct answer.

Can you help me about this Sensor?

1

There are 1 best solutions below

0
Mihir Shah On

You can calculate that manually in onTouchEvent() MotionEvent.ACTION_DOWN and MotionEvent.ACTION_MOVE.

Here is an article for your reference: https://android-developers.googleblog.com/2010/06/making-sense-of-multitouch.html

This will help a lot but you will have to figure out calculations.