Top "Ontouchlistener" questions

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

HorizontalScrollView within ScrollView Touch Handling

I have a ScrollView that surrounds my entire layout so that the entire screen is scrollable. The first element I …

android ontouchlistener android-scrollview horizontalscrollview
Android button has setOnTouchListener called on it but does not override performClick

When I try to add onTouchListner() to a button, it gets me the Button has setOnTouchListener called on it but …

android ontouchlistener
How to handle Touch Events on a Fragment?

I'm building an interface where I need to process touch events. In particular I would to be able to enable …

android android-fragments touch-event ontouchlistener
onTouchListener warning: onTouch should call View#performClick when a click is detected

I have created a onTouchListener. Unfortunately onTouch() method throws me a warning: com/calculator/activitys/Calculator$1#onTouch should call View#…

android ontouchlistener
Android: OnTouch, MotionEvent.ACTION_MOVE is not recognized?

Here is my code, I want to detect when my finger goes down the screen so when I touch the …

android ontouchlistener actionevent
Kotlin OnTouchListener called but it does not override performClick

How to override performClick in Kotlin to avoid warning? next.setOnTouchListener(View.OnTouchListener { view, motionEvent -> when (motionEvent.action){ …

android kotlin ontouchlistener
Image in Canvas with touch events

Seems simple, and yet I'm having problems with implementation. I want a canvas with image on screen including onTouch events. …

android image android-canvas ontouchlistener
onTouchevent() vs onTouch()

After many experiments with onTouchEvent and onTouch, I found that onTouch works everywhere you want (whether it is in activity …

android ontouchlistener touch-event
Add clickListner for button inside a cardView populated using a recyclerView

I have a cardView card_contents.xml <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.…

android ontouchlistener onitemclicklistener android-recyclerview android-cardview
Android - Hold Button to Repeat Action

Morning all, I'll admit straight off that I'm new to development and trying my hand at Android. I've been trying …

android handler ontouchlistener