gestures

Problems with Scrolling in LinearLayout

笑着哭i 提交于 2019-12-08 05:34:29
问题 I have a fairly simple question which somehow I can't figure out. I'm using a FrameLayout with an own view (onDrawn is overriden) and another transparent view which extends LinearLayout. I want to add scrolling for the transparent view, but if I use ScrollView in the XML a Classcast exception is thrown. My alternative was to implement scrolling on my own (e.g. with scrollTo in LinearLayout, where I can't find any example using that method), but the OnGestureListener doesn't trigger onScroll,

phonegap: is it possible to detect double touch swipe from Javascript?

自古美人都是妖i 提交于 2019-12-08 05:30:22
问题 I ask if a Phonegap application is able to recognize double swipe and handle related events in Javascript. 回答1: Yes, though you ought to use an API wrapper because it differs vendor to vendor. More about it http://www.html5rocks.com/en/mobile/touch.html 来源: https://stackoverflow.com/questions/8656932/phonegap-is-it-possible-to-detect-double-touch-swipe-from-javascript

IPhone two fingers twist gesture

我只是一个虾纸丫 提交于 2019-12-08 02:15:36
问题 I need to rotate an image when the user do a two finger twist on it. do you have an idea on how i can code this or if you've done this before. I think it would be a good idea to write a class that detect all the main gesture and provide iif. 回答1: I found this example on the internet. It's very nicely written... http://www.skylarcantu.com/blog/2009/08/08/multitouchsingletouchtap-handling/ 回答2: When you rotate your thumb and index clockwise what really happens is that: the thumb starts on the

Windows Mobile 6.5 Gestures and C# 2.0 Application

夙愿已清 提交于 2019-12-07 06:07:19
问题 I am looking for some advice on handling WM 6.5 Gestures in a C# 2.0 Application. Currently things like pan and scroll are interfering with controls like the Tab Control and listviews. Is there a way to catch these using C# 2.0 and handling them? I've been looking at the MSDN wrappers etc but these are built using .Net 3.5 and wont work with my application and I keep getting errors. Thanks for your help in advance, Morris 回答1: Using Gestures in Windows Mobile 6.5 try this 回答2: Why don't use

Disable pinch to zoom in IE10

怎甘沉沦 提交于 2019-12-06 19:10:38
问题 In IE10 touch mode I wish to make only a certain part of the page zoomable. The rest should not be. I found this: http://msdn.microsoft.com/en-US/library/ie/hh772044.aspx and tried to set -ms-touch-action: none to my body and html tags. However I can still zoom. Did I miss something? 回答1: Found the solution: -ms-content-zooming: none | zoom 回答2: For me this CSS code work html { -ms-content-zooming: none; -ms-touch-action: pan-x pan-y; } I am using this code for disabling pinch and double tap

IPhone two fingers twist gesture

爱⌒轻易说出口 提交于 2019-12-06 15:54:46
I need to rotate an image when the user do a two finger twist on it. do you have an idea on how i can code this or if you've done this before. I think it would be a good idea to write a class that detect all the main gesture and provide iif. I found this example on the internet. It's very nicely written... http://www.skylarcantu.com/blog/2009/08/08/multitouchsingletouchtap-handling/ When you rotate your thumb and index clockwise what really happens is that: the thumb starts on the right descrives a u shape underneath the index finishes on the left If you look at the full gesture it is .)

Android: GestureDetector won't catch Gestures

筅森魡賤 提交于 2019-12-06 08:16:59
I have to GestureDetectors in my program. One works beautifully, the other doesn't. As far as I can tell they're both implemented the same way. Here's the code for implementing the one that isn't working: myExcuseGestureDetector = new GestureDetector(new excuseGestureDetector()); excuseView.setOnTouchListener(new View.OnTouchListener() { public boolean onTouch(View v, MotionEvent event) { if(myExcuseGestureDetector.onTouchEvent(event)){ Log.d("Excuse Gesture Return","true"); return true; } Log.d("Excuse Gesture Return","false"); return false; } }); Then I have this block later which defines

Algorithm to recognise mouse movements

空扰寡人 提交于 2019-12-06 07:56:48
问题 Am wondering if there has been any research/algorthms which specify the amount of deviation of the mouse while recognizing characters like say "?" drawn using the mouse. Something a sort of optical character recognition, but probably a simpler version. Is there some algorithm using which I can say that a question mark drawn by the user is really a question mark and not something else with some amount of accuracy ofcourse. Something like what windows tablet software allows (while writing with

-[NSResponder swipeWithEvent:] not called

拜拜、爱过 提交于 2019-12-05 22:36:22
问题 I am writing an application targeting OS X Lion and Snow Leopard. I have a view that I want to have respond to swipe events. My understanding is that three-finger swipes will call -[NSResponder swipeWithEvent:] if that method is implemented in my custom view. I have already looked at this question and corresponding answers, and tried the following modified stub implementation of Oscar Del Ben's code: @implementation TestView - (id)initWithFrame:(NSRect)frame { self = [super initWithFrame

GestureDetector.SimpleOnGestureListener and GestureDetectorCompat don't work. What's wrong with my code?

给你一囗甜甜゛ 提交于 2019-12-05 20:17:36
问题 I'm following Detecting common gestures guide. I have linked to android-support-v4.jar library to get GestureDetectorCompat , and my code seems exactly the same as in the guide, except I'm detecting gestures in my custom view rather than in activity: public class MyGlView extends GLSurfaceView { private GestureDetectorCompat m_gestureDetector = null; public MyGlView(Context context, AttributeSet attrs) { super(context, attrs); init(context); } public MyGlView(Context context) { super(context)