Home | History | Annotate | only in /developers/build/prebuilts/gradle/BasicGestureDetect
Up to higher level directory
NameDateSize
.google/05-Aug-2015
Application/05-Aug-2015
build.gradle05-Aug-201510
CONTRIB.md05-Aug-20151.6K
CONTRIBUTING.md05-Aug-20151.5K
gradle/05-Aug-2015
gradlew05-Aug-20155K
gradlew.bat05-Aug-20152.3K
LICENSE05-Aug-201511.1K
NOTICE05-Aug-2015613
packaging.yaml05-Aug-2015495
README.md05-Aug-20152.6K
screenshots/05-Aug-2015
settings.gradle05-Aug-201522

README.md

      1 Android BasicGestureDetect Sample
      2 ===================================
      3 
      4 This sample detects gestures on a view and logs them. In order to try this
      5 sample out, try dragging or tapping the text.
      6 
      7 Introduction
      8 ------------
      9 
     10 In this sample, the gestures are detected using a custom gesture listener that extends
     11 [SimpleOnGestureListener][1] and writes the detected [MotionEvent][2] into the log.
     12 
     13 In this example, the steps followed to set up the gesture detector are:
     14 1. Create the GestureListener that includes all your callbacks.
     15 2. Create the GestureDetector ([SimpleOnGestureListener][1]) that will take the listener as an argument.
     16 3. For the view where the gestures will occur, create an [onTouchListener][3]
     17 that sends all motion events to the gesture detector.
     18 
     19 [1]: http://developer.android.com/reference/android/view/GestureDetector.SimpleOnGestureListener.html
     20 [2]: http://developer.android.com/reference/android/view/MotionEvent.html
     21 [3]: http://developer.android.com/reference/android/view/View.OnTouchListener.html
     22 
     23 Pre-requisites
     24 --------------
     25 
     26 - Android SDK v21
     27 - Android Build Tools v21.1.1
     28 - Android Support Repository
     29 
     30 Screenshots
     31 -------------
     32 
     33 <img src="screenshots/1-main.png" height="400" alt="Screenshot"/> 
     34 
     35 Getting Started
     36 ---------------
     37 
     38 This sample uses the Gradle build system. To build this project, use the
     39 "gradlew build" command or use "Import Project" in Android Studio.
     40 
     41 Support
     42 -------
     43 
     44 - Google+ Community: https://plus.google.com/communities/105153134372062985968
     45 - Stack Overflow: http://stackoverflow.com/questions/tagged/android
     46 
     47 If you've found an error in this sample, please file an issue:
     48 https://github.com/googlesamples/android-BasicGestureDetect
     49 
     50 Patches are encouraged, and may be submitted by forking this project and
     51 submitting a pull request through GitHub. Please see CONTRIBUTING.md for more details.
     52 
     53 License
     54 -------
     55 
     56 Copyright 2014 The Android Open Source Project, Inc.
     57 
     58 Licensed to the Apache Software Foundation (ASF) under one or more contributor
     59 license agreements.  See the NOTICE file distributed with this work for
     60 additional information regarding copyright ownership.  The ASF licenses this
     61 file to you under the Apache License, Version 2.0 (the "License"); you may not
     62 use this file except in compliance with the License.  You may obtain a copy of
     63 the License at
     64 
     65 http://www.apache.org/licenses/LICENSE-2.0
     66 
     67 Unless required by applicable law or agreed to in writing, software
     68 distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
     69 WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
     70 License for the specific language governing permissions and limitations under
     71 the License.
     72