Questions tagged [touch-event]

An event that is triggered when a user 'touches' a GUI component

A TouchEvent is an event that is triggered when a user 'touches' a GUI component. This is most commonly associated with applications that are designed to run on smart phones and touch screens. Many programming languages will treat an TouchEvent the same as a MouseEvent, which helps to provide touch functionality to applications that haven't specifically been designed for touch interactions.

1935 questions
0
votes
1 answer

dispatchTouchEvent issue for passing the touch event to children

I am trying to create the effect of lollipop toolbar icons for pre-lollipop versions. I wrote this class that extends a LinearLayout and in the dispatchTouchEvent checks to see which child is closer to the touch position and send that event only to…
0
votes
1 answer

Close keypad when touch or click outside of EditText in Android

For closing the keypad when touches or clicks the outside of the Edittext, i followed the below code. if there is one edittext its working correctly but more than one its not working. Example Scenario: Step 1 : Clicking the first edittext it opens…
user3546693
  • 364
  • 3
  • 18
0
votes
2 answers

How can I add touch listener for each element of an recyclerview item.

My case : - I have a RecyclerView with complex item (many ImageView, texts .. ) - I use 4 ImageView as 4 buttons (Like, Comment, Share, Dislike) - I want to use TouchListener for each button, because I want to control animation, also click…
Hoang Ha
  • 1,075
  • 2
  • 10
  • 15
0
votes
1 answer

OnTouchEvent update value Issue Android

Hello friends, I made a game that you need to press a ball and the ball increase his size. Now my problem is that when I call onTouchEvent and calling the function increaseRadius() its update my value when the finger is moving on the screen but if…
Ido Azulay
  • 47
  • 1
  • 7
0
votes
1 answer

How to detect if a Tap or Tap Hold occurs while scrolling in jQuery Mobile

Is there any way in jQuery Mobile to detect whether a Tap or Tap Hold is occurring during a scroll event? I keep getting phantom taps because I am scrolling.
Keith Adler
  • 20,880
  • 28
  • 119
  • 189
0
votes
1 answer

Javascript touch event doesn't fire in portrait orientation

I'm making a web-app where you can move elements around on a canvas and draw lines between them. Everything works as expected when in landscape mode on iphone and ipad, but when I switch into portrait mode touch will not be fired in the footer. It…
Kim Annika
  • 23
  • 4
0
votes
1 answer

How to stop Touch or Click Event while Swipe Event is in action in as3

In my code i use both swipe gesture and click event at the same time. How to avoid click event or touch event while swipe gesture is in action? stage.addEventListener (TransformGestureEvent.GESTURE_SWIPE,…
Sankar R
  • 25
  • 4
0
votes
2 answers

UIButton drag finger into the bounds

I'm trying to get a particular event to work. The user should touch one button (A), this button would pop-up some UIView, in which there is another button (B). If the user touchUpInside button A, the popup should disappear, and the Button (B) would…
TheSquad
  • 7,385
  • 8
  • 40
  • 79
0
votes
1 answer

Drawing rectangle on ImageView - not drawing upwards/leftwards

I've created a class which extends the ImageView allowing me to draw rectangles onto the ImageView on touch. I can draw rectangles however they only display when I'm dragging the rectangle from the starting point downward and to the right. If I drag…
LKB
  • 1,020
  • 5
  • 22
  • 46
0
votes
1 answer

How to make specific imageView reply to simple gesture listener, how to link onTouchListener to simpleGestureListener?

I dont' know how to connect onTouchListener to SimpleOnGestureListener, because onTouchlistener only accepts its own type - touchlistener. the way I have done it is this: onTouchEvent(not specific imageView's onTouch) gives the event to…
ERJAN
  • 23,696
  • 23
  • 72
  • 146
0
votes
0 answers

How to stop Image From scaling when MATRIX is set

I am dragging , moving , zooming and rotating my image , all is working fine. but I have serious problem and that is my Image flicker due to some problem and starts appear from the top of screen. First let me show my code what I am doing and then I…
Coas Mckey
  • 701
  • 1
  • 13
  • 39
0
votes
1 answer

Hammer.js: Is there a way to add a custom touch recognizer without using the hammer manager?

I am presently using the hammer.js touch library to do tap and pan events. I have come to a point where I now need a double tap event. According to the double tap example, the hammer manager creates a new hammer object without the preset…
Christopher Gaston
  • 491
  • 2
  • 6
  • 18
0
votes
0 answers

Android Give onTouchEvent priority over onClickListeners (multitouch)

I'm working on a multitouch activity, and inside this activity I've written an public boolean onTouchEvent(MotionEvent event){} that catch the multitouch events. The problem is that when I multitouch, for example a button, the onClickLister of that…
DevMan91
  • 107
  • 5
0
votes
1 answer

jQuery touch events

How to manage touch events. When I write a few touchstarts on different elements they are all activated at the same time and I can't separate them. Can you please help me to understand how to manage them right without a third-party libraries . I…
Andrii
  • 57
  • 4
  • 11
0
votes
1 answer

Android ouTouch shows actionbar and bottomtabs

What i want is to build an app that reads very long text from database and display it into lot of pages. And i also wanted to have onTouchEvent i think for the First screen. And will be shown like this, https://i.stack.imgur.com/XTTnf.png. When its…
user5241618