Top "Ontouchlistener" questions

Android interface to define a callback to be invoked when a view is touched.

Android : ImageView getID(); returning integer

I've set up an onTouch class to determine when one of my 40 buttons is pressed. The problem I am facing …

android button imageview ontouchlistener
Android move view on touch event

I would like to move two different views into my layout, so that an user can display it like his …

android touch ontouchlistener
Can't handle both click and touch events simultaneously

I am trying to handle touch events and click events on a button. I do the following: button.setOnClickListener(clickListener); …

android listeners ontouchlistener
how to implement both ontouch and also onfling in a same listview?

i have a listview and implemented onclick and also onfling.problem is when i do fling(swipe left to right), …

android listview gesture swipe ontouchlistener
EditText in Listview loses focus when pressed on Android 4.x

I know there are a lot of similar questions out here but I couldn't get any of the provided solutions …

android android-listview android-edittext android-softkeyboard ontouchlistener
onTouchListener not working

I have the following code in my activity. In my xml, the video view is inside the linear layout. However, …

android ontouchlistener
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
"Press and hold" button on Android needs to change states (custom XML selector) using onTouchListener

I've got a button graphic which needs to have "press and hold" functionality, so instead of using onClickListener, I'm using …

android selector ontouchlistener onclicklistener
How to catch double tap events in Android using OnTouchListener

I am trying to catch double-tap events using OnTouchListener. I figure I would set a long for motionEvent.ACTION_DOWN, …

android ontouchlistener
OnTouchEvent not working on child views

I have a Linear Layout that has a Button and a TextView on it. I have written a OnTouchEvent for …

android ontouchlistener