Top "Motionevent" questions

MotionEvent object used to report movement (mouse, pen, finger, trackball) events.

android drag and drop ImageView onTouchListener

Hello I've set up an onTouchListener within my application for an ImageView, my aim was to have an ImageView that …

android drag-and-drop imageview ontouchlistener motionevent
What causes a MotionEvent.ACTION_CANCEL in Android?

I am working through debugging some touch handling stuff on Android, and am trying to figure out why the MotionEvent …

android debugging motionevent
In Android, what is the difference between getAction() and getActionMasked() in MotionEvent?

I am confused by the two methods in Android. It seems that both methods tell you what kind of event …

android touch motionevent
MotionEvent handling in ScrollView in Android

I've been trying to figure out the behavior of MotionEvents in ScrollViews in Android and there's something i can't figure …

android touch scrollview motionevent
onInterceptTouchEvent, onTouchEvent only see ACTION_DOWN

I have a top level ViewGroup, which I call SliderView, in which I want to detect swiping. This is mostly …

android scrollview android-linearlayout touch-event motionevent
Android - Detect Touch Pressure on capacitive touch screen?

I've heard of: MotionEvent e; float press = e.getPressure(...); But this only returns 0 for no touch, and 1 when my finger …

java android touch motionevent pressure
What's the difference between ACTION_CANCEL and ACTION_UP in MotionEvent?

I want to track a finger touch on the screen. So what I did was to start recording the position …

android motion motionevent
Detecting Significant Device Motion on Android

I've been trying to figure out how to make an application that detects whether the device has been moved a …

android motion-detection motionevent
WebView getting rid of double tap zoom.

I read many tickets on the topic of Zooming in WebViews and didnt came to an answer for my case. …

android webview zoom touch-event motionevent
Pass motion event to parent Scrollview when Listview at top/bottom

I have a ListView in a ScrollView to show comments and I would like to do the following: When the …

android listview scrollview motionevent