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

stop or cancel function touch when the function touch is running in Corona SDK

any way to cancel or stop touch function when touch function is running ? I have a hang on using drag and drop function, when click the object and hold it until the timer is 0 appeared popup dialog and i have a hang all of button such as back button…
0
votes
0 answers

javascript change bg color of element by touchenter event

I have a 5*5 grid, what i want to do is to imitate drawing action than when i press(with my finger, it is suppose to be a mobile app) on a square it changes its background color. this part i have managed to do and it works fine. what i would like…
DavSev
  • 1,005
  • 4
  • 22
  • 47
0
votes
1 answer

How my Android view can stop events?

I created a view that is a horizontal wheel. It function well but when I put it in a step of Wizardroid, when making the scroll wheel that swipe the page. How to solve this? My code onTouchEvent : @Override public boolean onTouchEvent(MotionEvent…
0
votes
1 answer

got ACTION_CANCEL when moving a TextView

The code is as following. I extended a TextView and overrided its onTouchEvent method. I want to move the whole TextView(not the text itself) left and right. The following code sort of works, but it only let me move the TextView about 0.5…
DeanSinaean
  • 2,297
  • 4
  • 16
  • 19
0
votes
0 answers

Foreground view touch to pass lower layers (view behind)

I have layout in the background with view pager and on top of that i have layout which has the text layout.Since background view has view pager and should be visible i have given some padding to the top view. Here is the layout :
Hulk
  • 213
  • 2
  • 9
0
votes
0 answers

making resizable rectangle in android

I am working on a case in android. I need to draw a resizable rectangle and then to warp it. I am trying to draw it through 4 circles and by connecting these circles. But I couldn't arrive to move them separately, since in my code all of them are…
0
votes
0 answers

How to Remove Hover State on Mobile with Javascript/JQuery

Question, Answer Below I know this sounds like a common question, and I did a lot of searching, but I couldn't find an answer to my problem. Let's suppose I have this code
Rob Proctor
  • 79
  • 1
  • 8
0
votes
1 answer

Draw Multiple Objects - Android

So I got this working class that creates a DarkHole object in the screen. Its a filled circle with random color, position and radius. public class DarkHole extends View { private ShapeDrawable mDarkHole; // instance variables private…
hjuste
  • 130
  • 1
  • 12
0
votes
0 answers

How to isolate mousedown / touchstart events on custom checkbox label with anchor tag?

First, here's a screenshot for reference: I'm trying to have a custom checkbox respond to mouse and touch events in such a way it can be toggled either by it's icon OR label, BUT when the user touches or clicks the additional information link, it…
chamberlainpi
  • 4,854
  • 8
  • 32
  • 63
0
votes
1 answer

Cancel onTouchEvent when GestureDetector's onDoubleTap triggers

A View for freehand writing implements onTouchEvent for the drawing operations. Besides, a GestureDetector recognises double tap events to wipe the drawing. However, when the double tap occurs, onTouchEvent triggers an ACTION_UP, which draws an…
vitil
  • 256
  • 1
  • 3
  • 13
0
votes
1 answer

Android Capture touches coordinates in whole device

I want to capture the pointer locations in whole android device by providing a service to develop something like Pointer Location in Developer options . First I have tried addingoverlay view which is always on top to capture the coordinates . but…
peter
  • 112
  • 1
  • 8
0
votes
1 answer

ActionScript 3.0 TransformGestureEvent and MouseEvent

I'm trying to use GESTURE_PAN to move a MC and also use MOUSE_CLICK to go to another frame. Many people are saying GESTURE_PAN and MOUSE_CLICK work together BUT THEY WON'T ON MY iPhone. I've read many Q&A on the web and of course on…
0
votes
1 answer

The onTouchEvent is not being called

I am making a game app that displays random circles all across the screen. This is all done in the onDraw method by making a never ending loop. However in the onTouchEvent method there is code that is called when a circle is clicked. The problem is…
0
votes
2 answers

Add touch events for mobile game

I am trying to create a game for crossing the road, I did for desktop version where I can move the player by using keys to cross the road, but now I want to do it for mobile version, any idea how to add keys to move the player on mobile…
user1929483
  • 71
  • 1
  • 7
0
votes
1 answer

I can't seem to recognize touch events on android

I simply want to detect how much time has passed everytime I tap the screen. I can't seem to recognize the screen taps though. I have an onTouchEvent method that should call my checkTime method. The toast isn't displaying anything and the…
1 2 3
99
100