gesture

swipe some part of the screen

末鹿安然 提交于 2019-11-30 03:56:00
I am trying to design one screen which contain some swipe part. I have one screen with mapview, listview and some text. My Mapview is main part of swipe, if i swipe at left then contact will shown and if i swipe right then address will be display. Here is my image. i am showing rounded part which i need to swipe. How can i implement this functionality in my app. I go through with one tutorial but it didn't help me. This tutorial teach how to swipe full screen but i need to swipe some part of the screen. Is it possible. Give me some reference or hint. I didn't understand viewPager . Finally i

Proximity sensor on Galaxy S4 (Air Gestures)

那年仲夏 提交于 2019-11-30 03:42:54
The new Samsung Galaxy S4 have and interesting new type of gestures called " Air Gesture " that use an infrared sensor to process users hand movement in front of the screen, adding a " pre-touch "/" proximity " event, in wich the fingers are detected before the touch. I'd like to use this " Floating Touch " event in one of my apps. I searched both on Google and in the Samsung Developers Center, but I coudnt find any API or information about that. Are the API available or is too early? Does someone have any link/info? http://www.samsung.com/global/microsite/galaxys4/lifetask.html#page=airview

Detect swipe gesture in fragment

痴心易碎 提交于 2019-11-30 03:19:38
Hi I have implemented a Fragment , and I want to detect touch event on my fragment. But I am unable to detect that event, as a matter of fact, no event is beign detected at all. It works well in Activity , but it's not working on fragments. Following is my code: public class Swipe_Fragment extends Fragment implements GestureDetector.OnGestureListener, GestureDetector.OnDoubleTapListener { private SimpleGestureFilter detector; private LinearLayout swipLinear; private static int DEFAULT = 50; private int brightness; private GestureDetectorCompat mDetector; @Override public View onCreateView

Gesture detection in Flutter TextSpan

你离开我真会死。 提交于 2019-11-30 01:53:01
问题 Is there a way to detect which word in the TextSpan was touched by the user? This paragraph is here to get round the stack overflow robot that is insisting that I write more stuff :) 回答1: You can improve by yourself import 'package:flutter/gestures.dart'; ... new RichText( text: new TextSpan(text: 'Non touchable. ', children: [ new TextSpan( text: 'Tap here.', recognizer: new TapGestureRecognizer()..onTap = () => print('Tap Here onTap'), ) ]), ); 回答2: You can use recognizer property of

C# or JAVA library for gesture recognition from webcam?

断了今生、忘了曾经 提交于 2019-11-29 23:24:11
问题 I have a project for gesture recognition. I was wondering how can use C# or Java to program it? Is there any special library? Do I need programming or do I need a special device rather than a webcam? 回答1: Have you looked at OpenCV? OpenCV (Open Source Computer Vision) is a library of programming functions for real time computer vision. Example applications of the OpenCV library are Human-Computer Interaction (HCI); Object Identification, Segmentation and Recognition; Face Recognition; Gesture

Make ViewPager snap with shorter drag

假如想象 提交于 2019-11-29 22:31:23
Is there any way to make the support package ViewPager snap to the next page with a shorter drag? The default behaviour seems to be that even if I drag almost 75% the page still snaps back to the previous page when I let go. I'd like to make the snap threshold shorter and make the ViewPager snap to the next page instead. Note that this applied to drag gesture. A fling gesture requires much shorter gesture already. You can do this ad-hoc, without worrying too much about the internals of ViewPager as long as you want to increase the target zone: private class MyPageChangeListener implements

How to add a vertical swipe gesture to iPhone app for all screens?

半城伤御伤魂 提交于 2019-11-29 18:51:45
问题 I'd like to add a gesture to my app so when the user swipes vertically it triggers a method to do something. The swipe can be up or down. I've never done anything with gestures so this is my first use of a gesture other than what is included in a UITableView for deleting rows. The other problem is that most of my screens are UITableViews so the user could be simply scrolling the UITableView. So I am wondering if I could use a two finger swipe (vertical) to detect the gesture to run the code

GestureService OnFlick

瘦欲@ 提交于 2019-11-29 17:05:06
How can I add the GestureService and a handler for the Flick event in code-behind (i.e. not in XAML)? Firstly, make sure you've added a reference to the Silverlight Toolkit for Windows Phone 7 , specifically the Microsoft.Phone.Controls.Toolkit.dll assembly. Then make sure you have an XML namespace reference for the Microsoft.Phone.Controls namespace: xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit" Then, add the GestureService.GestureListener to the control you want to handle gestures on: <TextBlock x:Name="test" Text="Test"> <toolkit

How can I add Swipe Gesture to AVPlayer in swift 3

淺唱寂寞╮ 提交于 2019-11-29 15:19:25
问题 I am using Swift 3 and I want to add swipe gesture to AVPlayer . Somebody told me that in order to do this I have to use another view and bring that view to the top of the video - So I did it, and here is my code: ( But didn't work ) :( import UIKit import AVKit import AVFoundation class ViewController: UIViewController , UIAlertViewDelegate { let myFirstButton = UIButton() let mySecondButton = UIButton() var scoreLabel = UILabel() var Player = AVPlayer() var swipeGesture =

Android - how to scale/move/rotate the imageviews on a imageview [closed]

泄露秘密 提交于 2019-11-29 13:11:29
I need to implement image editor project. basically, I need to add some icons,text over an input image then export to final image. Is there any good tutorial for this? What you are searching is android-multitouch-controller . I have implemented in one of my application. It is working fine. It has following facility. Multi touch image scaling Multi touch image zooming single touch image panning There are 3 projects. In that "MTPhotoSortr" is one which I used. You need to check as per your requirement. 来源: https://stackoverflow.com/questions/16710066/android-how-to-scale-move-rotate-the